win10下老是出錯(cuò)。頭大。
Traceback (most recent call last):
File "E:\_Downloads\SinaBlog-master\SinaBlog\src\spider.py", line 156, in <module>
spider.run()
File "E:\_Downloads\SinaBlog-master\SinaBlog\src\spider.py", line 143, in run
self.saveBlogContent(typeName, item[0])
File "E:\_Downloads\SinaBlog-master\SinaBlog\src\spider.py", line 89, in saveBlogContent
blogTool.parse()
File "E:\_Downloads\SinaBlog-master\SinaBlog\src\sinaBlogContentTool.py", line 38, in parse
self.rawContent = soup.body.find(attrs = {'id' : 'sina_keyword_ad_area2'})
AttributeError: 'NoneType' object has no attribute 'find'
使用python下載新浪博客7個(gè)月前的一篇todo-list:一個(gè)下載新浪博客工具的to-do list今天終于可以說(shuō)是完工了。 代碼鏈接 主要的技術(shù)點(diǎn): 使用urllib和urllib2獲取網(wǎng)頁(yè)內(nèi)容 ...