import urllib2
import re
website = urllib2.urlopen(http://www.bxwx.org/b/5/5383/)
html = website.read()
links = re.findall('"((http|ftp)s?://.*?)"', html)
print links
raw_input()
我代码这样,不知道为什么一运行就退出了。
import urllib2
import re
website = urllib2.urlopen(http://www.bxwx.org/b/5/5383/)
html = website.read()
links = re.findall('"((http|ftp)s?://.*?)"', html)
print links
raw_input()
我代码这样,不知道为什么一运行就退出了。