Skip to content

This is a Python code to keep track of the price of oil of your choice distributed by CEYPETCO

License

Notifications You must be signed in to change notification settings

SanujaNS/CEYPETCO-Price-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CEYPETCO-Price-Tracker

Screenshot_20231205_002718

This is a Python code to keep track of the price of oil of your choice distributed by CEYPETCO.

Features

  • 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

Requirements

  • requests
  • beautifulsoup4
  • inquirer

1. Get Code

git clone https://github.com/SanujaNS/CEYPETCO-Price-Tracker.git
cd CEYPETCO-Price-Tracker/

2. Install requirements

python -m venv venv

source venv/bin/activate

pip install --upgrade pip

pip install -r requirements.txt

3. Run Code

python main.py

4. Select oil type

Screenshot_20231205_003937

5. Enter Current "Effect date"

  1. Go to the website https://ceypetco.gov.lk/marketing-sales/
  2. Copy whole line of your choice Screenshot_20231205_004231
  3. Paste it in the terminal

Screenshot_20231205_004508

Setup Telegram Notifications

For telegram notifications, Screenshot_20231205_005153-1 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. Screenshot_20231205_001035

Screenshots

1. Status: Not Changed

Screenshot_20231205_000656

2. Status: Changed

Screenshot_20231205_000938

Donation

Buy me a coffee ☕
bmc_sanujans

License

GNU General Public License v3.0

About

This is a Python code to keep track of the price of oil of your choice distributed by CEYPETCO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages