Skip to main content

A library (books) creator and simple libgen book downloader.

Project description

Install using 'pip3 install digilib'

Check test.py file for usage

import digilib def test(): print("starting simple downlad test") book_name = "the road to reality" digilib.get_book_libgen(book_name) print("book downloaded...")

directory = '../book_lib'
txt_file = 'txt_file.txt'
catalogue_dir = 'catalogue_dir'

print("directory traversal catalogue test ...")
digilib.create_catalogue(directory,catalogue_dir)
print("created catalogue by directory traversal...")
print("starting to create library using catalogue file 'catalogue_dir'")
digilib.create_library(catalogue_dir)
print("library creation completed")


catalogue_txt = 'catalogue_txt'
print("txt file reading catalogue test ...")
digilib.create_catalogue(txt_file, catalogue_txt)
print("created catalogue by reading txt file")
print("starting to created library using catalogue file 'catalogue_txt'")
digilib.create_library(catalogue_txt)
print("library creation completed")

test()

Project details


Download files

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

Source Distribution

mydlib-0.1.tar.gz (4.7 kB view hashes)

Uploaded source

Built Distribution

mydlib-0.1-py3-none-any.whl (5.5 kB view hashes)

Uploaded py3

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