思路&代码参考微信公众号:Python与Excel之交 ,作者小刀
以知乎热搜《男子因太能吃被「自助」餐厅拉黑,餐厅此种行为合法吗?》为例
网页:男子因太能吃被「自助」餐厅拉黑,餐厅此种行为合法吗? - 知乎
评论
进入浏览器的开发者模式
评论往下拉就会自动生成下一页,会有新的数据包
真实的url
https://www.zhihu.com/api/v4/questions/499739058/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%2Cattachment%2Cvoteup_cou