Skip to main content

A package for notifying any webpage change

Project description


PyPI PyPI - Python Version PyPI - Status PyPI - License

Webnotifier is a simple package for notifying any webpage change.


This package needs:

  • Requests >= 2.21.0
  • lxml >= 4.3.3


To install Webnotifier, use pip

$ pip install webnotifier


Instanciate the WebNotifier class and pass an url array and two callbacks. Also, you can pass the interval time (in seconds).

from webnotifier import WebNotifier

my_urls = [{'name':'Google','href':''}, {'name':'Medium','href':''},{'name':'Localhost','href':''}]

def onError(err):
    URL and Name params can be accessed within && err.url
    print("There was an error with {} on {}".format(, err.url))

def onNewChange(url,name):
    print("Webpage {} on {} changed!".format(name,url))

interval = 60 #Check if webpage changes every 60 seconds

custom_webnotifier = WebNotifier(my_urls,onNewChange,onError,interval)

When a webpage changes, the onNewChange callback will be triggered. Otherwise, if there's any error in getting the URL, onError callback will be executed.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for webnotifier, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size webnotifier-0.1.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View
Filename, size webnotifier-0.1.1-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page