Use python to grab a video app video, at this step do not know how to submit post parameters.

1. Grab the app post request with fidder as shown in the following figure
clipboard.png

clipboard.png

2.python requests

clipboard.png
Response [400]
post

clipboard.png
parameters as follows
{

"logs": [{
    "type": "startService",
    "timestamp": "2018-11-14T04:26:17.934Z",
    "device": {
        "wrapperSdkVersion": "1.8.1",
        "wrapperSdkName": "appcenter.react-native",
        "sdkName": "appcenter.android",
        "sdkVersion": "1.8.0",
        "model": "SM-G955N",
        "oemName": "samsung",
        "osName": "Android",
        "osVersion": "4.4.2",
        "osBuild": "NRD90M",
        "osApiLevel": 19,
        "locale": "zh_CN",
        "timeZoneOffset": 480,
        "screenSize": "900x1440",
        "appVersion": "1.4.0",
        "carrierName": "CHINA MOBILE",
        "carrierCountry": "CN",
        "appBuild": "8",
        "appNamespace": "xxxxxxxx.webview"
    },
    "services": ["Crashes"]
}, {
    "type": "startService",
    "timestamp": "2018-11-14T04:26:18.439Z",
    "device": {
        "wrapperSdkVersion": "1.8.1",
        "wrapperSdkName": "appcenter.react-native",
        "sdkName": "appcenter.android",
        "sdkVersion": "1.8.0",
        "model": "SM-G955N",
        "oemName": "samsung",
        "osName": "Android",
        "osVersion": "4.4.2",
        "osBuild": "NRD90M",
        "osApiLevel": 19,
        "locale": "zh_CN",
        "timeZoneOffset": 480,
        "screenSize": "900x1440",
        "appVersion": "1.4.0",
        "carrierName": "CHINA MOBILE",
        "carrierCountry": "CN",
        "appBuild": "8",
        "appNamespace": "xxxxxxxx.webview"
    },
    "services": ["Analytics"]
}]

}

4. Can anyone give me some advice on how to submit post parameters

Nov.19,2021

is it true that header is not set to

        headers = {'Content-type': 'application/json;charset=UTF-8', 'Accept': 'application/json, text/plain, */*'}
        url = "http://"
        di = {...}-sharpjson
        try:
            r = requests.post(url, data=json.dumps(di), headers=headers, timeout=1)
  • Python as the server side of android

    I want to use Python to build an android server. Android mainly uploads some keywords, then the Python server accepts these keywords, searches in the database, and then models the algorithm of data mining and returns the modeling results to Android. Is t...

    Mar.14,2021
Menu