Skip to content

Instantly share code, notes, and snippets.

View lesp's full-sized avatar
🏠
Working from home

Les lesp

🏠
Working from home
View GitHub Profile
@lesp
lesp / signature_count.py
Last active March 21, 2019 12:37 — forked from bennuttall/signature_count.py
petition watcher
import requests
from time import sleep
url = "https://petition.parliament.uk/petitions/241584/count.json"
def get_count():
count = None
while True:
r = requests.get(url)
if r: