网站地图爬虫章节遇到 TypeError: cannot use a string pattern on a bytes-like object
错误显示为 TypeError: cannot use a string pattern on a bytes-like object错误发生在 links=re.findall('(.*?)',sitemap)解决办法 把 html=urllib.request.urlopen(request).read()改为html=urllib.request.urlopen(reques
原创
2017-03-05 20:13:25 ·
470 阅读 ·
0 评论