carrotshub / ZhiHuSpider

两个关于知乎的爬虫,一个基于关键词搜索,爬取所有搜索的问题以及问题对应的答案和答案的所有评论;另外一个基于第一个爬虫获取的user_seeds,爬取用户相关信息
6 stars 1 forks source link

ValueError: Response is None #1

Open yzl256 opened 1 month ago

yzl256 commented 1 month ago

连接错误: 403 Client Error: Forbidden for url: https://www.zhihu.com/api/v4/questions/320078376/answers?include=data%5B*%5D.voteup_count,content&limit=20&offset=0&sort_by=voteups Traceback (most recent call last): File "D:\code\ZhihuSpider-master\GrandConcourse.py", line 38, in a = make_answers_as_book(question_id, warehouse) File "D:\code\ZhihuSpider-master\zhihu\question__init__.py", line 110, in make_answers_as_book raise ValueError('Response is None') ValueError: Response is None

carrotshub commented 1 month ago

这是来自QQ邮箱的自动回复邮件。您好,您的邮件我已收到,我将尽快回复!谢谢!

yzl256 commented 1 month ago

是知乎的API不对吗?大神这个报错要怎么解决