代码拉取完成,页面将自动刷新
同步操作将从 wycm/zhihu-crawler 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
zhihu-crawler是一个基于Java的爬虫实战项目,主要功能是抓取知乎用户的基本资料,如果觉得不错,请给个star。
Run with Main.java
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
authorization:oauth c3cef7c66a1843f8b3a9e6a1e3160e20
,这个值是存放在js文件中,详细获取方式见代码。db.enable = true
db.host =ip地址
db.username = 用户名
db.password = 密码
db.name = 数据库名
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。