Skip to content

Instantly share code, notes, and snippets.

@davidxbuck
davidxbuck / signature_count.py
Created March 21, 2019 11:16 — forked from bennuttall/signature_count.py
petition watcher
import requests
from time import sleep
url = "https://petition.parliament.uk/petitions/241584.json"
def get_count():
count = None
while True:
r = requests.get(url)
if r: