Module to search and download a book from the internet
Project description
MeoBook
A module to search and download a book from the internet
Description
This is a package for searching a book and downloading it from the internet
Installation
pip install meobook
Usage
from meoBook import MeoBook
meobook = MeoBook()
#the search method will return maximum of 5 books by default in a list of Book object
list_of_book = meobook.search_book("git hub cheat sheet")
#Download one book
book1 = list_of_book[0].download("/your/destination/path")
#
Docs
Methods in MeoBook object
self.search_book(keyword, limit=5)
limit parameter limits the return results from self.search_book function
Methods in Book object
download(directory) method will download the book in the directory which is provided with the title of the book as a file name
self.download('destination/directory/')
Book object attributes
self.title : Title of the books. (str)
self.description: A short description of the book.(str)
self.link: link of the book (str).
self.size: size of the book in bytes (int).
self.size_mb: Size of the book in MegaByte. (float).
self.page_numer: Page number. (may be none because the information is missing) (int)
Credits
Tina Hubert Ratolojanahary (rtinahubert@gmail.com, https://tina-rt.netlify.app)
Made in Madagascar
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
File details
Details for the file meobook-0.1.1.tar.gz.
File metadata
- Download URL: meobook-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.60.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcb1cbbad1c7eff8a12f7056b4d2c74689658e0464edec18aedb2cf32c34f180
|
|
| MD5 |
b1fe6dd1e5efd61cc490cd7161334b38
|
|
| BLAKE2b-256 |
387f7f57d1e800753fb25a58c49a07035a7dcd22a42a793294cdd86927ba8a80
|