Skip to content

Instantly share code, notes, and snippets.

@samkeeleyong
Created February 17, 2017 06:41
Show Gist options
  • Save samkeeleyong/5cdd781147c45631205f9624a241120f to your computer and use it in GitHub Desktop.
Save samkeeleyong/5cdd781147c45631205f9624a241120f to your computer and use it in GitHub Desktop.
from lxml import html
import requests
import threading
import subprocess
def sendmessage(message):
subprocess.Popen(['notify-send', message])
return
def printit():
threading.Timer(5.0, printit).start()
try:
response = requests.get(
"https://smcinema.com/Home/GetBranchesByMovieName?movieName=Aqours%201st%20LoveLive!%20~Step!%20ZERO%20to%20ONE~&dateFormat=2")
print response.text[2]
sendmessage("meeron na")
except:
print "wala parin"
printit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment