Automated Bitcoin & Ethereum price monitor that sends instant Telegram alerts on significant market moves.
This bot runs in the background, checking live crypto prices every hour via the CoinGecko API. If Bitcoin or Ethereum moves more than 10% since the last check, you get an instant Telegram notification — no manual monitoring needed.
- Fetches live BTC & ETH prices in EUR from CoinGecko
- Compares them to the last saved prices (
previous_prices.json) - If change > 10% → sends a Telegram alert
- Saves current prices for the next comparison
- Repeats every hour automatically
| Tool | Purpose |
|---|---|
| Python 3 | Core language |
| requests | API calls |
| schedule | Automated scheduling |
| python-dotenv | Secure credential management |
| CoinGecko API | Live crypto prices (no API key needed) |
| Telegram Bot API | Price change notifications |
- Clone the repository
git clone https://github.com/gkocoding/python-scraper-scheduler.git
cd python-scraper-scheduler- Create and activate virtual environment
python -m venv venv
.\venv\Scripts\Activate.ps1- Install dependencies
pip install -r requirements.txt- Create
.envfile in the root folder TELEGRAM_TOKEN=your_telegram_bot_token
TELEGRAM_CHAT_ID=your_chat_id
- Run the tracker
python tracker.pyBot Token:
- Open Telegram and search for @BotFather
- Send
/newbotand follow the instructions - Copy the token you receive
Chat ID:
- Start your bot and send it any message
- Visit:
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates - Find
"chat": {"id": ...}in the response
python-scraper-scheduler/
│
├── tracker.py # Main script
├── previous_prices.json # Auto-generated, stores last known prices
├── requirements.txt # Dependencies
├── .env # Secret credentials (not tracked by git)
└── README.md
Bitcoin price changed by 12.45%!
Built as a portfolio project — part of a Python freelance development journey.