Last active
January 10, 2016 23:03
-
-
Save rawls238/6017d34d63c79517f299 to your computer and use it in GitHub Desktop.
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 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