Skip to content

Keep an eye on inventory changes on zara.com, or any html change on any website

Notifications You must be signed in to change notification settings

perlcloud/HTML-Change-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HTML Change Tracker

Track and be notified of changes on a web page

This script was built to notify me and my wife of when a particular item of clothing came into stock on zara.com because they do not have a email notification system on their children's site.

Note: Readme incomplete, but I'll be back, don't worry!

How it works

Using headless chrome, the html of the url specified in the config file is retrieved. Using the BeautifulSoup module, a portion of the html is extracted for comparison. At the beginning of each run and any time there is a change, the html is saved to the project folder as a timestamped html file.

When a change is detected, a notification is sent out via email while the script continues to run looking for further changes.

Config.yaml

The config.yaml file contains the settings for the script.

Note: You must rename the file that comes with the project to config.yaml.

project_name: Project Name Goes Here and is used to create a project folder
url: url to the page you want to follow
target:
  name: Your BeautifulSoup settings
  class: go here

sender:
  user: gmail account to send notification
  pwd: password
recipient:
  - email of recipient, one or more
  - send via text by using your careers gateway like - 1234567890@txt.att.net

sleep:
  min: Minimum sleep time between checks
  max: max sleep time. Random choice between the 2 is chosen

SMTP is used to log into your gmail account to send the notifications. in order to enable SMTP with gmail, you must enable less secure apps for your account. As this is less than ideal, consider setting up a new account just for notifications.

About

Keep an eye on inventory changes on zara.com, or any html change on any website

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages