Skip to content

Instantly share code, notes, and snippets.

@nickstenning
Created August 25, 2016 15:14
Show Gist options
  • Save nickstenning/694d02a207e8c9d888b1c0ea97ab612d to your computer and use it in GitHub Desktop.
Save nickstenning/694d02a207e8c9d888b1c0ea97ab612d to your computer and use it in GitHub Desktop.
from __future__ import print_function
import sys
import requests
requests.post('https://hypothes.is/account/_debug/counter?reset')
print('.', end='')
sys.stdout.flush()
n = 1
for _ in range(100):
resp = requests.post('https://hypothes.is/account/_debug/counter')
resp.raise_for_status()
print('.', end='')
sys.stdout.flush()
n += 1
print("")
print("requested={}".format(n))
print(resp.content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment