5.8 KiB
5.8 KiB
In [ ]:
import requests
# URL and headers
url = "https://api.winrobot360.com/api/app/market/listByParam"
headers = {
"Accept-Language": "zh-CN,zh;q=1",
"Authorization": "bearer 9fa9b6f2-f2ab-4528-90b3-69a3c906ba72",
"Accept": "application/json, text/json, text/x-json, text/javascript, application/xml, text/xml",
}
developAppVersionIds = []
# Loop through pages 1 to 10
for page_num in range(1, 11):
payload = {
"marketId": "02eafb8c-02bd-4a6c-9cbf-de3dfd5f3791",
"appType": "activity",
"marketUiTag": "",
"key": "",
"page": page_num,
"size": 28,
}
# Sending the request
response = requests.post(url, json=payload, headers=headers)
# Process the response
print([item.get("developAppVersionId") for item in response.json().get("data")])
developAppVersionIds.extend([item.get("developAppVersionId") for item in response.json().get("data")])
len(developAppVersionIds)In [ ]:
import requests
import urllib3
urllib3.disable_warnings()
# API 请求的 URL
url = "https://api.winrobot360.com/api/client/app/develop/package/version/detail"
for developAppVersionId in developAppVersionIds:
# 查询参数
params = {"appVersionId": developAppVersionId, "reSize": "48"}
# 请求头
headers = {
"Authorization": "bearer 9fa9b6f2-f2ab-4528-90b3-69a3c906ba72",
"Accept": "application/json, text/json, text/x-json, text/javascript, application/xml, text/xml",
}
# 发送 GET 请求
response = requests.get(url, headers=headers, params=params, verify=False)
# print(json.dumps(response.json(), indent=4))
data = response.json().get("data")
print(
f'{data.get("appName")}: {",".join([item.get("name") for item in data.get("versionFlowList")])}'
)