老师讲得很好,比我之前学的一个课程清晰多了,我也没多少HTML的基础,但听他讲大概都能明白,其实跟HTML没什么关系,小白们加油
2016-11-15
完善:_get_new_data方法里的title_node与summary_node要先检查是否为None再进行下一步
2016-11-12
还要加上超时检测
if url is not None:
try:
request = urllib.request.urlopen(url, timeout=10)
if request.getcode() == 200:
return request.read()
else:
return None
except Exception as e:
print(str(e))
else:
return None
if url is not None:
try:
request = urllib.request.urlopen(url, timeout=10)
if request.getcode() == 200:
return request.read()
else:
return None
except Exception as e:
print(str(e))
else:
return None
2016-11-12
Ubuntu14.04、Python2.7环境下本实例的实现:https://github.com/shfanzie/spider_baike
2016-11-11
Ubuntu14.04、Python2.7环境下本实例的实现:https://github.com/shfanzie/spider_baike
2016-11-11