Metadata-Version: 2.0
Name: libgenapi
Version: 1.2.0
Summary: Library to search on Library genesis
Home-page: https://github.com/mmarquezs/libgen-python-api/
Author: Marc Marquez Santamaria
Author-email: mmsa1994@gmail.com
License: MIT
Keywords: libgen search crawl development
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Requires-Dist: grab

libgen-python-api
=================

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:

.. code:: python

    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]))'"


