为什么我的结果是这样的?
E:\python3.2\python.exe "E:/PyCharm 2016.1/untitled/baike_spider/spider_main.py" craw 1 : http://baike.baidu.com/view/21087.htm craw failed Process finished with exit code 0
E:\python3.2\python.exe "E:/PyCharm 2016.1/untitled/baike_spider/spider_main.py" craw 1 : http://baike.baidu.com/view/21087.htm craw failed Process finished with exit code 0
2016-04-18
try未执行,而是把异常的提示显示在控制台,说明程序代码应该有写错的地方,可以找一下这位的代码https://github.com/fifths/python_baike_spider/blob/master/baike_spider/html_outputer.py
然后进行对比
举报