YashPS / StockChecker

A web-scraper that checks a URL for item stock status, sends out alert to your Telegram if found! Works with dynamic webpages as well.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Necessity is the mother of invention' - Mahatma Gandhi

STOCK CHECKER with TELEGRAM NOTIFICATION INTEGRATION

by Yash Pratap Singh

Setup telegram to receive notifications when your item is in stock! (recommend you to Google through this setup)

Capable of checking websites with dynamic changes after loading, using Chrome-driver of Selenium

HOW TO USE

  1. Create your own config.yaml in config/ directory based on config_template.yaml

  2. Update the config as per below guidelines -

token: <your_telegram_bot_token>
chat_id: <your_telegram_chat_id>
request_url: <product_url>
test_url: <url_of_product_in_stock{for testing only}> 
item_name: <display_name_for_telegram_notification>
class_name: <class_identifier_to_find_in_request_url_html>
check_phrase: <unique_text_in_out_of_stock_page{something like 'out of stock'}> 
  1. Run checker.py

  2. Thank me if it works

  3. ... it didn't work... Well...

  4. We are on a rock floating in expanding nothingness...

  5. It'll work out at the end. :)

About

A web-scraper that checks a URL for item stock status, sends out alert to your Telegram if found! Works with dynamic webpages as well.

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%