Created
February 17, 2017 06:41
-
-
Save samkeeleyong/5cdd781147c45631205f9624a241120f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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