The example code below not response as it should:
import requests
url = “https://love-calculator.p.rapidapi.com/getPercentage”
querystring = {“fname”:“John”,“sname”:“Alice”}
headers = {
‘x-rapidapi-host’: “love-calculator.p.rapidapi.com”,
‘x-rapidapi-key’: “key”
}
response = requests.request(“GET”, url, headers=headers, params=querystring)
print(response.text)
加入讨论 - 在下面添加评论:
Okay, let me check on the issue. I will update you soon. Thank you.
The response is:
<HTML>
<HEAD>
<TITLE>403 Forbidden</TITLE>
<BASE href="/error_docs/"><!–[if lte IE 6]></BASE><![endif]–>
</HEAD>
<BODY>
<H1>Forbidden</H1>
You do not have permission to access this document.
<P>
<HR>
<ADDRESS>
Web Server at codzz.com
</ADDRESS>
</BODY>
</HTML>
<!–
–>