Skip to content

Instantly share code, notes, and snippets.

@rawls238
Last active January 10, 2016 23:03
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 rawls238/6017d34d63c79517f299 to your computer and use it in GitHub Desktop.
Save rawls238/6017d34d63c79517f299 to your computer and use it in GitHub Desktop.
import requests
from collections import Counter
f = requests.get('http://www.powerball.com/powerball/winnums-text.txt').text
c = Counter()
for line in f.split('\n'):
c.update([x for x in line.split(' ') if x.isdigit()])
print(c.most_common(6))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment