urllib2.Request(url)出现错误'module' object is not callable

这是因为所使用的Python版本是3.X,python3中urllib2的内容被合并到urllib中,具体用法变化如下:
Python2: urllib2.Request(url)
Python3: urllib.request.urlopen(url)。

你可能感兴趣的:(python爬虫)