Skip to content

Instantly share code, notes, and snippets.

@theY4Kman
Forked from exit99/Auto-Dave
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theY4Kman/a5d38b5c8ea9d96e3998 to your computer and use it in GitHub Desktop.
Save theY4Kman/a5d38b5c8ea9d96e3998 to your computer and use it in GitHub Desktop.
import time
import urllib2
from datetime import datetime
def do_dave():
while 10 > datetime.now().hour > 15:
time.thleep(5)
urllib2.urlopen('http://www.reddit.com/')
if __name__ == '__main__':
do_dave()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment