【发布时间】:2021-08-06 02:40:18
【问题描述】:
我开始使用网页抓取页面在滚动时加载更多数据,所以我在执行此操作时打开了 get url,并获得了我需要的所有数据的 json,但我的代码没有返回我在浏览器中获得的所有 json只有 2 个结果不是第一个或最后 2 个,甚至不是彼此相邻,我不知道为什么它会删除其余的结果
import requests
jsonUrl = "https://www.deviantart.com/_napi/da-user-profile/api/gallery/contents?username=Dreamsquid&offset=48&limit=24&folderid=58533887"
response = requests.get(jsonUrl)
jsonResponse = response.json()
print(jsonResponse)
【问题讨论】:
标签: python web-scraping python-requests