Skip to main content

a python library to search free eBooks online using Library Genesis's database

Project description

GiGS-eBook

a python library to search free eBooks online using Library Genesis's database

Installation

pip3 install gigsebook

TODO

  • Better error handling

USAGE

  • import the class FetchData

    from gigsebook import FetchData

  • initialize an instance of FetchData with the query

    output = FetchData('your_query')

  • now output.data should be filled with the returned info, use it to your needs. e.g.

    print(output.data)

    should provide you with:

    [
        {
            'title': 'dummy',
            'author': 'dummy, dummy2',
            'year': '0000',
            'publication': 'dummy',
            'pages': '0',
            'language': 'dummy',
            'size': '0 Bytes',
            'extention': 'none',
            'links': ['https://example.example',
                      'https://example2.example']
        },
    
        {
            'title': 'dummy',
            'author': 'dummy, dummy2',
            'year': '0000',
            'publication': 'dummy',
            'pages': '0',
            'language': 'dummy',
            'size': '0 Bytes',
            'extention': 'none',
            'links': ['https://example.example',
                      'https://example2.example']
        },
    
        .
        .
        .
    ]
    

    Note that the output above is not JSON, It's just a list of dictionaries. The representation is just to make it readable.

NOTES

I DO NOT RECOMMEND PIRACY OF ANY CREATION, BUY THE ORIGINAL COPIES TO SUPPORT THE AUTHOR. THIS CODE IS FOR EDUCATIONAL PURPOSES. FOR OTHER USES, YOU ARE RESPONSIBLE FOR WHAT YOU DO.

LICENSE

Licensed under MIT License

Copyright (c) 2020 Gaurav Kumar Yadav

Head over to the LICENSE for details

Project details


Download files

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

Files for gigsebook, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size gigsebook-1.0.3.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View
Filename, size gigsebook-1.0.3-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page