Skip to main content

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


Download files

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

Source Distribution

meobook-0.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page