腾讯搞的啥东西,这key还要申请吗
import requests
import json
headers = {
"Host": "apis.map.qq.com",
"Referer": "https://channels.weixin.qq.com"
}
data = {
"address": "北京市海淀区彩和坊路海淀西大街74号",
"key": "5Q5BZ-5EVWJ-SN5F3-K6QBZ-B3FAO-RVBWM"
}
url = [
"https://apis.map.qq.com/ws/geocoder/v1",
"https://apis.map.qq.com/ws/location/v1/ip"
]
html = requests.get(url[1], data, headers=headers)
res = json.loads(html.text)
print(res)