Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An API workaround the library genesis platform to enable query search

License

NotificationsYou must be signed in to change notification settings

doc-han/LibGenesis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusGitHub package.json versionnpmnpmGitHubnpm bundle size

A simple module for getting and downloading paid books or PDF's for free. This module is based on Library Genesis and works by getting books straight from the portal. More features will be integrated soon.

How it works

  1. Install and require the package
constlibgen=require('libgenesis');
  1. Pass your search query.

The function returns a promise, Hence, you are to wait for response as below

libgen("book name here").then(function(books){//do something with booksconsole.log(books);}).catch(function(error){//throw errorthrowerror;})
  1. The returned array of objects contains the various fields as in the example below
    Anull value is returned when no book was found for the search term. And download of books is possible by a simpleGET request to the link in the donwload property in the response.
[{id:'2348853',title:'From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars',author:'Manfred "Dutch" Von Ehrenfried',language:'English',filesize:'13.32MB',extension:'pdf',download:'http://download.library1.org/main/2348000/31d6ee634d383579863137448c347b67/Manfred "Dutch" Von Ehrenfried - From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars-Springer Praxis Books (2019).pdf',bookImage:'http://library1.org/covers/2348000/31d6ee634d383579863137448c347b67-d.jpg'},{id:'2348854',title:'From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars',author:'Manfred "Dutch" Von Ehrenfried',language:'English',filesize:'74.75MB',extension:'epub',download:'http://download.library1.org/main/2348000/b628824068dd80a12773e43e8fd93bac/Manfred "Dutch" Von Ehrenfried - From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars-Springer Praxis Books (2019).epub',bookImage:'http://library1.org/covers/2348000/b628824068dd80a12773e43e8fd93bac-d.jpg'}]

If you've been waiting for long for this.Please star the project on GitHub

Hence you can do what you want with it. Thank You

About

An API workaround the library genesis platform to enable query search

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp