Created
November 29, 2014 02:40
-
-
Save mrrcollins/ae86c097cc8c5698c7cc to your computer and use it in GitHub Desktop.
Record the number of times I've watched Christmas Vacation
This file contains 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
import clipboard | |
import webbrowser | |
import urllib | |
cvfile = open('cvwatches.txt','r') | |
w = int(cvfile.read()) + 1 | |
cvfile.close() | |
cvfile = open('cvwatches.txt','w') | |
cvfile.write(str(w)) | |
cvfile.close() | |
m = "hootsuite://compose?message=" + urllib.quote("I've watched Christmas Vacation " + str(w) + " times for 2014.") | |
webbrowser.open(m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment