import json
import requests
req_type = "douyin_web_video_detail"
headers = {
"User-Agent": "ApiWebServerUser",
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/json;charset=UTF-8",
}
api_url = "https://api.addcoder.com/" + req_type
req_params = {"api_auth_key": "601137664d318ffde7c095381db55434"}
req_data = {"aweme_id": "7333152194524466495"}
response = requests.post(
api_url,
headers=headers,
params=req_params,
data=json.dumps(req_data, separators=(",", ":")),
timeout=20,
)
print(response.text)