Skip to content

A python package for downloading pdf from the web

Notifications You must be signed in to change notification settings

Tina-rt/meobook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ([email protected], https://tina-rt.netlify.app)

Made in Madagascar

About

A python package for downloading pdf from the web

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages