无法从人脸检测API获取任何输出

2024-06-16 10:42:04 发布

您现在位置:Python中文网/ 问答频道 /正文

import requests

url = "https://apicloud-facerect.p.rapidapi.com/process-url.json"

querystring = {"url":"http://apicloud.me/assets/facemark/image1.jpg"}

headers = {
    'x-rapidapi-host': "apicloud-facerect.p.rapidapi.com",
    'x-rapidapi-key': "correct-key-provided"
    }

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)

上述代码不生成任何输出

我期待JSON文件的输出。没有错误


Tags: keyhttpsimportcomjsonhttpurlresponse