wistbean / learn_python3_spider

python爬虫教程系列、从0到1学习python爬虫,包括浏览器抓包,手机APP抓包,如 fiddler、mitmproxy,各种爬虫涉及的模块的使用,如:requests、beautifulSoup、selenium、appium、scrapy等,以及IP代理,验证码识别,Mysql,MongoDB数据库的python使用,多线程多进程爬虫的使用,css 爬虫加密逆向破解,JS爬虫逆向,分布式爬虫,爬虫项目实战实例等

Home Page:http://fxxkpython.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: object of type 'NoneType' has no len()

mumu0419 opened this issue · comments

commented

我在豆瓣top250那个案例里,运行文件,报错TypeError: object of type 'NoneType' has no len(),
报错语句是 soup = BeautifulSoup(html, 'lxml')
请教这个怎么解决,是什么原因?

commented

#13 (comment)
这个老哥说了一个解决方法,解决了我的这个问题,感谢