0
点赞
收藏
分享

微信扫一扫

腾讯搞的啥东西,这key还要申请吗

鱼板番茄 2022-03-22 阅读 89
python

腾讯搞的啥东西,这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)
举报

相关推荐

0 条评论