首先,我获得了一个 zomato api。然后我使用 nodejs fetch 从 api 获取餐馆。
0-19 项:
https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=0&count=20
20-40 件:
https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=20&count=20
40-60 项:
https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=40&count=20
60-80 项:
https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=60&count=20
80-100 项:
https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=80&count=20
100-120(以后开始返回空记录)
https://developers.zomato.com/api/v2.1/search?entity_id=259&entity_type=city&start=100&count=20
我的问题是,这是一种退回更多物品的方法。