代码拉取完成,页面将自动刷新
zhihu-crawler是一个基于Java的爬虫实战项目,主要功能是抓取知乎用户的基本资料,如果觉得不错,请给个star。
zhihu/src/main/resources/application.yaml
redis、mongodb相关配置,application.yaml
zhihu/src/main/resources/mongo-init.sql
mongodb脚步,mongo-init.sql
/var/www/logs
logback-spring.xml
https://www.zhihu.com/api/v4/members/${userid}/followees
参数名 | 类型 | 必填 | 值 | 说明 |
---|---|---|---|---|
include | String | 是 | data[*]answer_count,articles_count |
需要返回的字段(这个值可以改根据需要增加一些字段,见如下示例url) |
offset | int | 是 | 0 | 偏移量(通过调整这个值可以获取到一个用户的所有关注用户 资料) |
limit | int | 是 | 20 | 返回用户数(最大20,超过20无效) |
https://www.zhihu.com/api/v4/members/wo-yan-chen-mo/followees?include=data[*].educations,employments,answer_count,business,locations,articles_count,follower_count,gender,following_count,question_count,voteup_count,thanked_count,is_followed,is_following,badge[?(type=best_answerer)].topics&offset=0&limit=20
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。