Skip to content

Instantly share code, notes, and snippets.

@graingerkid
Created July 11, 2016 13:35
Show Gist options
  • Save graingerkid/f6b02c269878bb7ae53560d197921299 to your computer and use it in GitHub Desktop.
Save graingerkid/f6b02c269878bb7ae53560d197921299 to your computer and use it in GitHub Desktop.
>>> import requests
>>> import time
>>> import webbrowser
>>> while True:
... r=requests.get('https://www.example.co.uk/')
... if r.status_code == 200:
... webbrowser.open('https://www.example.co.uk/')
... else:
... pass
... time.sleep(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment