Pinterest的API板分页 [英] Pinterest API board paging

查看:192
本文介绍了Pinterest的API板分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以做的(学历)的猜测,寻呼与未发布的Pinterest的API是如何工作的?

Can anyone do an (educated) guess as to how paging works with the unreleased Pinterest API ?

例如,此链接:<一个href=\"https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/\">https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/
返回特定板的第一个50引脚。但它包含101针。如何取回第2页和第3?

For example, this link: https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/ returns the first 50 pins of that specific board. But it contains 101 pins. How do I retrieve page 2 and 3 ?

由于API实际上不是公开的,我可以不看它,但也许碰巧知道或可以做一个很好的猜测。

Since the API is not actually public, I can't look it up but maybe happens to know or can do a good guess.

感谢

编辑:

我试过:

https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/page/2/
https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/?page=2
https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/?p=2
https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/?offset=2

Pinterest的是基于Django的所以它可能使用REST框架。任何想法?

Pinterest is based on Django so it probably uses the REST Framework. Any ideas?

推荐答案

即使他们使用的是一些框架(如DRF),他们有一百万的方式来建立查询结构。如果我想反向工程的一些未发布的API,还开着我要么使用Wireshark或Fiddler2。然后就开始使用的网站,并看到正在作出什么样的要求,弄清楚请求模式,并建立对你的即席API自己的API。另一种选择是简单地看Chrome开发者工具的网络的一部分,如果你只需要一个大致的了解。

Even if they are using some framework (like DRF) they have a million ways to set up the query structure. If I wanted to reverse-engineer some non-published API that was still open I would either use Wireshark or Fiddler2. Then just start using the website and see what sort of requests are being made, figure out the request pattern and build your own API against your ad-hoc API. Another option is simply watching the Network part of Chrome Developer Tools if you just need a general idea.

这篇关于Pinterest的API板分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆