Skip to content

Instantly share code, notes, and snippets.

View roddds's full-sized avatar

Rodrigo Deodoro roddds

View GitHub Profile
import sys
import BeautifulSoup
import requests
def gethours(name):
if len(name) == 17 and name.isdigit:
xml = requests.get('http://steamcommunity.com/profiles/%s/games?xml=1' % name)
else:
xml = requests.get('http://steamcommunity.com/id/%s/games?xml=1' % name)
@roddds
roddds / dash.py
Created November 4, 2012 13:22
Diamond Dash bot
'''
Diamond Dash bot
'''
import time
import autopy
import ImageGrab
from random import randint
from collections import Counter
@roddds
roddds / imgur.py
Created July 12, 2012 17:42
imgurroulette
import urllib2
import random
import sys
ext = ['.png', '.jpg', '.gif']
chars = '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
prefix = 'http://i.imgur.com/'
try:
print "Press Ctrl+C to end!"