[英]Is it possible to get data from chrome tools > network > preview using requests?
I've written a short script and I have a chance to improve it if I get access to the certain data presented on screen.我写了一个简短的脚本,如果我可以访问屏幕上显示的某些数据,我就有机会改进它。 Is it possible somehow to requests this data with requests library?
是否可以通过请求库以某种方式请求这些数据? I need to get a user with a particular id which I gather with my 2nd script.
我需要使用我的第二个脚本收集的具有特定 ID 的用户。 I just need to know if it is possible because I could not find any answer on that.
我只需要知道这是否可能,因为我找不到任何答案。
This is the code.这是代码。 Link comes from headers tab:
链接来自标题选项卡:
import requests
url = "https://www.thecrims.com/api/v1/nightclub"
payload = {"id":"17713682"}
r = requests.post(url, params=payload)
解决方法很简单,试试这个:
print(r.json())
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.