获取不到zhihu_answer数据表的内容

来源:6-21 保存数据到mysql中 -3

慕后端4065732

2019-03-17

按照老师给的代码运行,为什么获取不到zhihu_answer数据表的内容呢?

写回答

3回答

bobby

2019-03-18

你看看pycharm的console有没有报错呢?

0
2
bobby
回复
慕后端4065732
好的,
2019-03-22
共2条回复

慕UI2426744

2019-06-19

更新成这个了:
start_answer_url = "https://www.zhihu.com/api/v4/questions/{0}/answers?include=data%5B%2A%5D.is_normal%2Cadmin_closed_comment%2Creward_info%2Cis_collapsed%2Cannotation_action%2Cannotation_detail%2Ccollapse_reason%2Cis_sticky%2Ccollapsed_by%2Csuggest_edit%2Ccomment_count%2Ccan_comment%2Ccontent%2Ceditable_content%2Cvoteup_count%2Creshipment_settings%2Ccomment_permission%2Ccreated_time%2Cupdated_time%2Creview_info%2Crelevant_info%2Cquestion%2Cexcerpt%2Crelationship.is_authorized%2Cis_author%2Cvoting%2Cis_thanked%2Cis_nothelp%2Cis_labeled%2Cis_recognized%2Cpaid_info%3Bdata%5B%2A%5D.mark_infos%5B%2A%5D.url%3Bdata%5B%2A%5D.author.follower_count%2Cbadge%5B%2A%5D.topics&limit={1}&offset={2}&platform=desktop&sort_by=default"

0
0

慕后端4065732

提问者

2019-03-18

//img.mukewang.com/szimg/5c8f730a0001583417410028.jpg

显示的是找不到这个start_url...

0
1
bobby
这个是400 达标的是参数错误 你可以通过浏览器访问以下看看能不能访问 或者你把这个url贴一下 我这边访问试试
2019-03-19
共1条回复

Scrapy打造搜索引擎 畅销4年的Python分布式爬虫课

带你彻底掌握Scrapy,用Django+Elasticsearch搭建搜索引擎

5797 学习 · 6290 问题

查看课程