Skip to content

Instantly share code, notes, and snippets.

@mengskysama
Created September 15, 2015 16:33
Show Gist options
  • Save mengskysama/bb3cff948f96460aebc0 to your computer and use it in GitHub Desktop.
Save mengskysama/bb3cff948f96460aebc0 to your computer and use it in GitHub Desktop.
freexs.cn
import urllib2
import re
for i in range(100000):
try:
response = urllib2.urlopen('http://www.freexs.cn/info/%s.htm' % i)
t = re.findall('<h1>([\S\s]+?)</h1>', response.read())[0]
print i, t
except:
print i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment