Skip to content

Instantly share code, notes, and snippets.

@icchy
Created May 19, 2015 04:17
Show Gist options
  • Save icchy/923ed6fcf4565913a55a to your computer and use it in GitHub Desktop.
Save icchy/923ed6fcf4565913a55a to your computer and use it in GitHub Desktop.
import requests
import time
url = "https://2015.legitbs.net/scoreboard#"
cur = ""
html = requests.get(url).text
tmp = html.split('\n')
for c in tmp:
if "class='locked'" in c:
cur += c
while (1):
time.sleep(60)
res = ""
try:
html = requests.get(url).text
except:
continue
tmp = html.split('\n')
for c in tmp:
if "class='locked'" in c:
res += c
if res != cur:
pass # do something
cur = res
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment