Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doc-han/libgenesis
An API workaround the library genesis platform to enable query search
https://github.com/doc-han/libgenesis
ebooks free free-book genesis libgen library library-genesis paid pdf
Last synced: 3 months ago
JSON representation
An API workaround the library genesis platform to enable query search
- Host: GitHub
- URL: https://github.com/doc-han/libgenesis
- Owner: doc-han
- License: mit
- Created: 2019-05-31T05:39:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T17:20:07.000Z (about 2 years ago)
- Last Synced: 2024-10-31T13:35:42.628Z (3 months ago)
- Topics: ebooks, free, free-book, genesis, libgen, library, library-genesis, paid, pdf
- Language: JavaScript
- Size: 67.4 KB
- Stars: 51
- Watchers: 2
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LibGenesis
[![Build Status](https://travis-ci.com/Doc-Han/LibGen.svg?branch=master)](https://travis-ci.com/Doc-Han/LibGen)
![GitHub package.json version](https://img.shields.io/github/package-json/v/doc-han/libgen.svg?color=%2328a745)
![npm](https://img.shields.io/npm/dm/libgenesis.svg)
![npm](https://img.shields.io/npm/v/libgenesis.svg)
![GitHub](https://img.shields.io/github/license/doc-han/libgen.svg)
![npm bundle size](https://img.shields.io/bundlephobia/min/libgenesis.svg?color=orange)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 works1. Install and require the package
```javascript
const libgen = require('libgenesis');
```2. Pass your search query.
The function returns a promise, Hence, you are to wait for response as below
```javascript
libgen("book name here").then(function(books){
//do something with books
console.log(books);
}).catch(function(error){
//throw error
throw error;
})
```3. The returned array of objects contains the various fields as in the example below
A **null** value is returned when no book was found for the search term. And download of books is possible by a simple **GET** request to the link in the donwload property in the response.```javascript
[
{
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](https://github.com/Doc-Han/LibGen.git)
Hence you can do what you want with it. Thank You