第一句输出网址,第二句craw faild,然后就没了,try语句去掉后这样报错怎么办?
Traceback (most recent call last):
File "C:\Users\Administrator\eclipse-workspace\imooc\baike_spider\spider_main.py", line 35, in <module>
craw 1: https://baike.baidu.com/item/Python/407313?fr=aladdin
obj_spider.craw(root_url)
File "C:\Users\Administrator\eclipse-workspace\imooc\baike_spider\spider_main.py", line 19, in craw
http_cont = self.downloader.download(new_url)
AttributeError: 'SpiderMain' object has no attribute 'downloader'