Traceback (most recent call last):
File "D:/py/muke-pachong/baike_spider/spider_main.py", line 2, in <module>
from baike_spider import url_manger,html_downloader,html_parser,html_outputer
ImportError: No module named baike_spider
__init__.py 文件我也有了
File "D:/py/muke-pachong/baike_spider/spider_main.py", line 2, in <module>
from baike_spider import url_manger,html_downloader,html_parser,html_outputer
ImportError: No module named baike_spider
__init__.py 文件我也有了
2016-02-26
Traceback (most recent call last):
File "D:/py/muke-pachong/baidubaike/spider_main.py", line 2, in <module>
from baidubaike import url_manger,html_downloader,html_parser,html_outputer
ImportError: No module named baidubaike
这个是么问题
File "D:/py/muke-pachong/baidubaike/spider_main.py", line 2, in <module>
from baidubaike import url_manger,html_downloader,html_parser,html_outputer
ImportError: No module named baidubaike
这个是么问题
2016-02-26
已采纳回答 / Yaffy
#coding:utf-8import urllib2import cookieliburl = "http://www.baidu.com"print '第一种方法'response1 = urllib2.urlopen(url)print response1.getcode()print len(response1.read)第一种方法做后获取长度时response1.read 你少个括号应该是response1.read()
2016-02-24
讲得很棒。老师实例爬虫--分析目标这一页ppt有个小错误。简介这边,div少了一个斜线,应该是<div class = "lemma-summary">***</div>
2016-02-21