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 queryoutput = 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gigsebook-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c186988316b6753d1f5076c5c8cf2c33c7ea454fb446feae7ee7251d0349a1 |
|
MD5 | ff67dd6ded488a34e7110535f652031d |
|
BLAKE2b-256 | b6c8842b27bf7bdb52f5ee9f2c6c2fd56b91fa140373f31817ce5a7ddf034fb8 |