This program scrapes data from auction listings and calculates the return of investment (ROI) of mining rigs. It uses Python Flask to display the data in a web browser.
- Web scraping with Beautiful Soup
- Async calls with aiohttp and asyncio
- SQLite database for cache
- API calls to external services for profitability data of popular graphic cards
- Create new virtual env:
python -m venv env
- Activate your virtual env:
env/Scripts/activate
- Install packages from included requirements.txt:
pip install -r .\requirements.txt
- Get your API key from hashrate.no and place it into config.ini file
python -m flask --app rig_profit_calc run
Open your web browser and go to http://localhost:5000 Input Your electricity price into the box and press "GO". You will see a table with the following columns:
- Model: The name of the mining rig and also link to the auction
- Price: The price of the mining rig in PLN
- Hashrate: The hashrate of the mining rig in MH/s
- Power: The power consumption of the mining rig in W
- Profit: The daily profit of the mining rig in PLN
- ROI: The return of investment of the mining rig in days