Skip to main content

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

Metadata

Release files for meobook 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meobook 0.1.1
File Size Uploaded
meobook-0.1.1.tar.gz 3.5 kB Details

Release files / meobook-0.1.1.tar.gz

Download URL meobook-0.1.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fcb1cbbad1c7eff8a12f7056b4d2c74689658e0464edec18aedb2cf32c34f180
BLAKE2b-256 checksum
How to use checksums
387f7f57d1e800753fb25a58c49a07035a7dcd22a42a793294cdd86927ba8a80
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

0.0.9

2 release files

0.0.8

2 release files

0.0.7

1 release file

0.0.6

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page