This is a Python code to keep track of the price of oil of your choice distributed by CEYPETCO.
- Can use with any type of oil - ['Petrol 92 Octane', 'Petrol 95 Octane', 'Auto Diesel', 'Super Diesel 4', 'Kerosene', 'Industrial Kerosene']
- Can change interval time
- Sends notification messages of price changes via Telegram
- requests
- beautifulsoup4
- inquirer
git clone https://github.com/SanujaNS/CEYPETCO-Price-Tracker.git
cd CEYPETCO-Price-Tracker/
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python main.py
- Go to the website https://ceypetco.gov.lk/marketing-sales/
- Copy whole line of your choice
- Paste it in the terminal
For telegram notifications, remove comment shown in above picture and fill values(bot_token, chat_id) accordingly. If you don't know how to get those values, just a simple google search will do. There are lot of tutorials for that. So I'm not explainig them here.
If everything is configured correctly, you will get a notification like this when the price changes.
Buy me a coffee ☕ |
---|
GNU General Public License v3.0