Skip to content

Instantly share code, notes, and snippets.

@stuartlynn
Created August 15, 2016 14:17
Show Gist options
  • Select an option

  • Save stuartlynn/8499d5411b1ecd9058ecb86c30c674da to your computer and use it in GitHub Desktop.

Select an option

Save stuartlynn/8499d5411b1ecd9058ecb86c30c674da to your computer and use it in GitHub Desktop.
Did this site change?
from pync import Notifier
import requests
import time
oldPage=None
while True:
html = requests.get('https://www.polymer-project.org/summit').text
#html = requests.get('http://www.bbc.com/news').text
if oldPage:
if html != oldPage:
Notifier.notify("CHANGED!!!!!")
break
oldPage = html
time.sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment