在Google圣诞老人跟踪Api中,圣诞老人的当前位置的变量是什么?

2024-09-24 02:16:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图找到圣诞老人的当前位置,但位置变量只包含我的当前位置。我想在Api https://santa-api.appspot.com/info?client=web&language=en&fingerprint=&routeOffset=0&streamOffset=0上找到圣诞老人的当前位置。你知道吗

我尝试使用location变量,得到了当前位置。你知道吗

import requests
santaApi = requests.get("https://santa-api.appspot.com/info?client=web&language=en&fingerprint=&routeOffset=0&streamOffset=0").json()
formatted_data = santaApi["location"]
print(formatted_data)

这是我的代码,当我运行它时,我得到了我的当前位置。你知道吗

我本想知道圣诞老人的位置,但我知道了。你知道吗


Tags: httpsinfocomclientapiweblocationsanta