青春求真脚本打开<已弃用>

'''
reference:https://blog.csdn.net/qq_44639286/article/details/105763497
import requests

def request_h(url):
    headers = {
        "Accept-Encoding": "gzip, deflate, br",
        "User-Agent": "Mozilla / 5.0",
        "content-type": "application / json",
        "Referer": "https://servicewechat.com/wxdb944240800c0f4d/31/page-frame.html",
        "school":"dw",
        # 设置token
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo2MTIyNywiZXhwIjoxNjk0MDg4ODI3LCJpc3MiOiJnaW4tYmxvZyJ9.IeK4eXSNIG4fCqGMxmylmNPg1_qUV10y_7DRxcR3HsI",
        "Connection": "keep - alive",
        "Host": "yiapi.25team.com"
    }
    r = requests.get(url, headers=headers)
    return r


if __name__ == '__main__':
    url = "https://yiapi.25team.com/school/yi/myReport" #index?version=2
    res = request_h(url)
    print(res.text)
'''

import requests
import json
url = "https://restapi.amap.com/v3/geocode/regeo?location=109.67538,37.14258&key=a0599c316b9533a47162b9044a64f659&extensions=base"
headers = {
    "Accept-Encoding": "gzip, deflate, br",
    "User-Agent": "Mozilla/5.0",
    "content-type": "application/json",
    "Referer": "https://servicewechat.com/wxd2bebfc67ee4a7eb/45/page-frame.html",
    "Connection": "keep-alive",
    "Host": "restapi.amap.com"

}
r = requests.get(url, headers=headers)
print(r.json())
检查自己位置信息
GET /v3/geocode/regeo?location=116.40717,39.90469&key=a0599c316b9533a47162b9044a64f659&extensions=base HTTP/1.1
Referer: https://servicewechat.com/wxdb944240800c0f4d/31/page-frame.html
---------------------
import requests
import json

url = "https://restapi.amap.com/v3/geocode/regeo?location=116.40717,39.90469&key=a0599c316b9533a47162b9044a64f659&extensions=base HTTP/1.1"
Referer: "https: // servicewechat.com / wxdb944240800c0f4d / 31 / page - frame.html"
headers = {
    "Accept-Encoding": "gzip, deflate, br",
    "User-Agent": "Mozilla/5.0",
    "content-type": "application/json",
    "Referer": "https://servicewechat.com/wxdb944240800c0f4d/31/page-frame.html",
    "Connection": "keep-alive",
    "Host": "restapi.amap.com"

}
r = requests.get(url, headers=headers)
print(r.json())
---------------------------
**Host: restapi.amap.com**
{"status":"1","regeocode":{"addressComponent":{"city":[],"province":"北京市","adcode":"110101","district":"东城区","towncode":"110101001000","streetNumber":{"number":"2号","location":"116.407397,39.9042169","direction":"东南","distance":"56.0529","street":"正义路"},"country":"中国","township":"东华门街道","businessAreas":[{"location":"116.416804,39.913479","name":"东单","id":"110101"},{"location":"116.412031,39.913505","name":"王府井","id":"110101"},{"location":"116.402959,39.892171","name":"珠市口","id":"110101"}],"building":{"name":[],"type":[]},"neighborhood":{"name":[],"type":[]},"citycode":"010"},"formatted_address":"北京市东城区东华门街道正义路北京市人民政府(旧址)"},"info":"OK","infocode":"10000"}
--------------------------------
POST /school/yi/addReport HTTP/1.1
Referer: https://servicewechat.com/wxdb944240800c0f4d/31/page-frame.html
Host: yiapi.25team.com
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo2MTIyNywiZXhwIjoxNjk0MTI5MTU4LCJpc3MiOiJnaW4tYmxvZyJ9.wwJaeIy2NIaROrHZpc2Ii1la6hA_26DdOHcCM-PJBJk

POST what?

GET /ws/location/v1/ip?key=RPEBZ-J2ZWW-2CIRC-OO3Q2-HH7X2-7GBEJ&sig=7817334a06d1ddb3bac9137847e65b6b 

    "status": 0,
    "message": "query ok",
    "result": {
        "ip": "2409:8a00:1a51:c5a0:e073:c0c4:4984:8f66",
        "location": {
            "lat": 39.90469,
            "lng": 116.40717
        },
        "ad_info": {
            "nation": "中国",
            "province": "北京市",
            "city": "北京市",
            "district": "",
            "adcode": 110000
        }
    }
}

GET /school/yi/getStudentInfo HTTP/1.1
{"code":200,"msg":"ok","data":{"user_id":61227,"role":"student","truename":"","student_id":"","college_id":,"college":"","instructor_id":56,"instructor":","tutor":"","grade":"","student_class":"","student_type":"","education":"","birthplace":"北京市","mobile":"","create_time":"2020-03-01T21:25:12+08:00"}}


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值