python爬虫
tunaG
这个作者很懒,什么都没留下…
展开
-
No module named 'html.entities'; 'html' is not a package
from bs4 import BeautifulSoupImportError: No module named 'html.entities'; 'html' is not a package找来找去的,最终发现是把测试脚本名称写成html.py 导致太尴尬了。。。原创 2017-01-11 17:30:31 · 4061 阅读 · 2 评论 -
pyspider 如何传参
打算传多余的参数,来处理。最终采取如下方式: def handle_info_dict(self,info_dict): for key in info_dict: if isinstance(info_dict[key],dict): m3u8_url = info_dict[key]['VideoUr原创 2017-01-17 15:02:36 · 836 阅读 · 0 评论