webwatch.py

2017-02-01 • python, scraping, notification

Checks if certain parts of a website have changed in comparison to the last time the script was called. Best to use in cronjobs.

The code is available on github.

Example usage

import webwatch

webwatch.MAIL_SENDER = 'webwatch@example.com'
webwatch.MAIL_RECEIVER = 'notify_me@example.com'

webwatch.init()

webwatch.check_site('spiegel', 'http://www.spiegel.de/', 'div.teaser')

webwatch.finish()

Back