Install the required prerequisites:
pip install bs4
-- or --
pip install bs4 --user
Open pricetracker.py with your IDE and change the following tags:
- URL = "PRODUCT_LINK_HERE" - Enter the URL of the product page you want to track the price of.
- wh = "WEBHOOK_URL_HERE" - Enter the Discord Webhook URL. This can be found in Channel Settings > Integrations > Webhooks > Copy URL.
- results = soup.find(class_="REPLACE_WITH_PARENT_CLASS") - Type the name of the parent (usually div) class of the element.
- price = results.find_all("div", class_="REPLACE_WITH_ELEMENT_CLASS") - Type the html (usually div) class of the element.
Repeat steps 3. and 4. for lines 43 and 45 aswell.
Change the default messages of the print() and webhook data {[]} entries.
Run with
py ./pricetracker.py