Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

类型错误!NoneType object is not iterable #233

Closed
tangeven opened this issue Mar 24, 2019 · 2 comments
Closed

类型错误!NoneType object is not iterable #233

tangeven opened this issue Mar 24, 2019 · 2 comments

Comments

@tangeven
Copy link

Traceback (most recent call last):
File "D:/dem0_spider/article_collector.py", line 73, in
articles = get_articles(timedel=1)
File "D:/dem0_spider/article_collector.py", line 27, in get_articles
articles.extend(reformat(ws_api.get_gzh_article_by_history(account)))
TypeError: 'NoneType' object is not iterable

@IKkSssDendi
Copy link

搜狗更新了反爬策略,会检测ua,所以需要构造ua。要不然爬取返回为空。你看看是不是这个问题

@chyroc
Copy link
Owner

chyroc commented Apr 1, 2019

#235

@chyroc chyroc closed this as completed Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants