Skip to main content

A Python library that provides an api to search and get links from Books,Magazines,Comics,… from Library Genesis.

Requirements:

  • Python 2/3

  • Grab library and it’s dependencies.

Installation:

Two options: * Clone this repo and use “python setup.py install” * Use pip, “pip install libgenapi”

Example of usage:

import libgenapi

lg=libgenapi.Libgenapi([”http://[INSERT MIRROR DOMAIN 1 HERE].com”,”http://[INSERT MIRROR DOMAIN 2 HERE].com]) # You can add as many mirrors as you want.

lg.search(“python”)

Then the results are something like this (but… without the crazyness :P real links and titles…):

[
    {
        "author":"Dat Guy",
        "series":"Library of New Guy Studies volume 420",
        "title":"Dat perfect 5/7 Title !",
        "isbn":[123456],
        "edition":"[1 ed.]",
        "publisher":"WHo knows? Me no!",
        "year":"420",
        "pages":"420",
        "language":"chan",
        "size":"420 kb",
        "extension":"vap",
        "mirrors":["http://IDontWantADMCA.takedown/view.php?id=1337HAYKER",
                 "http://IDontWantADMCA.takedown/ads.php?md5=MD5HERE",
                 "http://IDontWantADMCA.takedown/md5/MD5HERE",
                 "http://IDontWantADMCA.takedown/md5/MD5HERE"
                 ]
    }
]

You can also choose the column to search like this:

l.search("93438924","identifier") # Identifier is ISBN
l.search("Michael","author")
...

Other examples:

You can make a quick command to search using an alias, for example in zsh you can add this to your .zshrc: > alias lgen=”python -c ‘import sys;import libgenapi;l=libgenapi.Libgenapi(”http://[INSERTDOMAINHERE]/”);print(l.search(sys.argv[1]))’”

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libgenapi-1.2.1.tar.gz (15.5 kB view details)

Uploaded Source

File details

Details for the file libgenapi-1.2.1.tar.gz.

File metadata

  • Download URL: libgenapi-1.2.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for libgenapi-1.2.1.tar.gz
Algorithm Hash digest
SHA256 f725bbb5545b4cb04cb318e6484ab28526c887636bc105ccd68c77f0c3c105a0
MD5 71b4a9f15f5c73b63eb8b19f446b2da0
BLAKE2b-256 3b16b94b4067e60d8f7e14f0ef03b1ad10ae7955838644ac98c1e999ce07e6fe

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 file

1.2.0

2 files

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.7

1 file

1.0.6

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page