def wget(url):
"""
Download the page into a string
"""
import urllib.request, urllib.error, urllib.parse
request = urllib.request.urlopen(url)
":type: urllib2.req"
filestring = request.read()
return filestring
评论列表
文章目录