python爬虫(6)爬虫实例(2)

import urllib.request import re # 获取网页的html,与requests包一样的功能 def getHtml(url): response = urllib.request.Request(url, headers=header) page = urllib.request.urlopen(response) html = page.r
相关文章
相关标签/搜索