A simple scraper for tgju.org with command line interface.
- Python 3.6+
- requests
- beautifulsoup4
There is no installation option yet, so you have to clone the repository and run the script manually. I may package it in the future.
git clone https://github.com/Parsa2820/tgju-scraper.git
cd tgju-scraper
python3 tgju.py --help
Usage:
python tgju.py --help # show this message
python tgju.py --list # show list of currencies
python tgju.py --all # show price of all currencies
ptyhon tgju.py --ledger # show price of all currencies in ledger database format
python tgju.py <currency> # show price of currency
python tgju.py <currency1> <currency2> ... # show price of currencies
What is ledger database format? Ledger is a double-entry accounting system. It is kinda cool. Check it out here. This option is useful if you want to convert the prices in your ledger file to IRR.