“期望属于双引号中包含的属性名称:第1列第3列”&quot'带有JSON请求

发布于 2025-02-06 22:10:48 字数 374 浏览 0 评论 0原文

试图从公交运输系统中刮擦数据。据我了解,此错误与JSON请求返回的数据没有正确格式的数据有关。问题是,我不知道该请求要返回什么,而且我通常是WebDev的新事物。

response = requests.get('http://passio3.com/www/mapGetData.php?getBuses=1&deviceId=1683997&wTransloc=1')

print(response)
print(response.json())

错误的屏幕截图

Trying to scrape data from a bus transit system. From what I understand this error has something to do with the data returned by the JSON request not being formatted properly. The trouble is, I don't know exactly what the request is returning and I'm totally new to webdev stuff in general.

response = requests.get('http://passio3.com/www/mapGetData.php?getBuses=1&deviceId=1683997&wTransloc=1')

print(response)
print(response.json())

Screenshot of error

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文