A python script to parse data from Al-Islam.org's books.
By: Ali Mir
Created: November 27, 2016
Python version: 3xx
Pull requests are always appreciated :)
Make sure to first install Beautiful Soup.
Returns a book object containing description, tags, categories, etc.
Example:
import parseAlIslam
tabatabai_book = parseAlIslam.get_a_book_metadata("https://www.al-islam.org/a-shiite-anthology-muhammad-husayn-tabatabai")
print tabatabai_book.title # A Shi'ite Anthology
Returns a list of book objects.
Link for entire books collection: http://al-islam.org/print/book/export/html/
Downloads ebook of the Al-Islam.org book url.
Ebook name: title of the book
Ebook format: epub
Example:
import parseAlIslam
parseAlIslam.download_ebook("https://www.al-islam.org/ethical-discourses-vol2-makarim-shirazi")
# file downloaded as: Ethical Discourses: Volume 2.epub
Downloads entire ebook collection from Al-Islam.org!