项目作者: arlbibek
项目描述 :
📚 Web Scraping and retrieving different chapters and verse of the Bhagavad Gita.
高级语言: Python
项目地址: git://github.com/arlbibek/Retrieving-Bhagavad-Gita.git
Bhagavat Gita From Web Scraping
Web Scraping and retrieving different chapters and verse of the Holy Bhagvat Gita.
Why?
I was bored and wanted to read The Bhagavad Gita.
Usage
Install Python 3.6+.
Go to python Download Page.
1. Install requirements
pip3 install -r requirements.txt
PIP is a cross-platform package manager for installing and managing Python packages (which can be found in the Python Package Index)
The above command will install following pacakages.
2. Run main.py
and follow along
python3 main.py
Feature List
- You could choose among different options:
- Retrieve: Everything - All 700 verses
- Retrieve: A single chapter - All verses from selected chapter
- Retrieve: Specific verse from a specific chapter
- Retrieve and display a random quote & more..
- You could choose to save output file in:
- Markdown (.md) format (Recommended)
- Or text (.txt) format
- CTRL + C (^C) will terminate and abort the program in any given time
- And more..
What’s New
- Re-wrote all code from scratch (made more readable and understandable code then before).
- Moved all the functions to separate file (myfunctions.py).
- Menu now is cleaner and has more options.
- Should work in Linux and OS X as well (Not Tested).
- Your won’t ever see an traceback.
Code in Action Screenshots
Code in Action



Sample output file in Text file format


What’s Coming
# The End.