Skip to content

Instantly share code, notes, and snippets.

@AndyNovo
Created February 29, 2016 14:21
Show Gist options
  • Save AndyNovo/25b1dcacfd565d498112 to your computer and use it in GitHub Desktop.
Save AndyNovo/25b1dcacfd565d498112 to your computer and use it in GitHub Desktop.
#scraping a site in Python
import urllib2, re
res = urllib2.urlopen('http://www.befria.nu/elias/pi/binpi.html')
html = res.read()
chunks = re.findall('([01]{8}) ', html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment