您当前的位置: 首页 >  爬虫

川川菜鸟

暂无认证

  • 4浏览

    0关注

    969博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

requests爬虫实战:某基金信息爬取

川川菜鸟 发布时间:2022-05-31 21:35:11 ,浏览量:4

一、请求探索

网页分析: 在这里插入图片描述 页码分析: 1.第一页:https://gs.amac.org.cn/amac-infodisc/api/pof/fund?rand=0.652806594661254&page=0&size=20 2. 第二页: https://gs.amac.org.cn/amac-infodisc/api/pof/fund?rand=0.652806594661254&page=1&size=20 3. https://gs.amac.org.cn/amac-infodisc/api/pof/fund?rand=0.652806594661254&page=2&size=20

单数刷新一下rand发生变化:似乎就是是一个随机数 https://gs.amac.org.cn/amac-infodisc/api/pof/fund?rand=0.16767992415199218&page=0&size=20

规律变化:页码部分需要调整,rand部分随机的。

https://gs.amac.org.cn/amac-infodisc/api/pof/fund?rand={}&page={}&size=20

也可以通过JS查看确定一下就是用的一个随机函数:

关注
打赏
1665165634
查看更多评论
立即登录/注册

微信扫码登录

0.0651s