Skip to content

This project scrapes data from auction listings and calculates the return of investment (ROI) of mining rigs.

Notifications You must be signed in to change notification settings

dawmro/rig_profit_calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rig_profit_calc

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.

Features:

  • 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

alt text

Setup:

  1. Create new virtual env:
python -m venv env
  1. Activate your virtual env:
env/Scripts/activate
  1. Install packages from included requirements.txt:
pip install -r .\requirements.txt
  1. Get your API key from hashrate.no and place it into config.ini file

Usage:

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

alt text

About

This project scrapes data from auction listings and calculates the return of investment (ROI) of mining rigs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published