Asynchronous python lib for Libgen.rs
Project description
Asynchronous python library for Libgen.rs to search and download books.
Installing libgenesis using the command line pip install libgenesis
Importing libgenesis
from libgenesis import Libgen
Creating libgenesis object
lg = Libgen()
or
lg = Libgen(sort= "year", sort_mode= "ASC", result_limit= 50)
Searching for a book
async def search():
q = "japan history"
result = await lg.search(q)
for item in result:
print("id = " + item)
print("title = " + result[item]["title"])
print("md5 = " + result[item]["md5"])
Downloading for a book
async def download():
q = "japan history"
result = await lg.search(q)
download_location = []
for item in result:
file_path = await lg.download(result[item]["mirrors"]["main"])
# path = Path("Downloads")
# file_path = await lg.download(result[item]["mirrors"]["main"]], dest_folder=path)
download_location.append(file_path)
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
libgenesis-0.1.0.tar.gz
(9.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file libgenesis-0.1.0.tar.gz.
File metadata
- Download URL: libgenesis-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b43f2f8a7a6e4ce602d5f62b7b94c2a8ed8b3183534ed202afabdbb32c6b6dc3
|
|
| MD5 |
4f6abec39feb8638d1b737abfb107a0a
|
|
| BLAKE2b-256 |
1b9511833a3c247036142e1ebacc308fe1c244e6ee1fa1be8f38569c74b5b3ab
|
File details
Details for the file libgenesis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: libgenesis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1f3604e509caad9ce7f8ea26843cd659e13992a4efa5ee116d3fcaa4912eff0
|
|
| MD5 |
bca742a15c583756afd84d80a4a93433
|
|
| BLAKE2b-256 |
7d7b8ffa9b16661d8d6240d40dc83cf829ae0ddc7b6d4a75f69166b6f1134950
|