meobook

Module to search and download a book from the internet


Keywords
module, to, download, pdf, python, book, downloader, search, engine, package
Install
pip install meobook==0.1.1

Documentation

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