Skip to content

Instantly share code, notes, and snippets.

@exit99
Last active March 1, 2016 19:35
Show Gist options
  • Save exit99/bf3a78fc72003d20faac to your computer and use it in GitHub Desktop.
Save exit99/bf3a78fc72003d20faac to your computer and use it in GitHub Desktop.
Automating Dave's Job
import time
import urllib2
from datetime import datetime
def do_dave():
while 10 < datetime.now().hour < 15:
time.sleep(5)
urllib2.urlopen('http://www.reddit.com/')
if __name__ == '__main__':
do_dave()
@sentientmachine
Copy link

Tough to fire dead wood in this entitlement economy. You can't fire me, I'm entitled.

@sunzhongwei
Copy link

nice job

@HealingTek
Copy link

Dave's not here.

@mauricioabreu
Copy link

lololol very nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment