<p>我有以下代码要在Pythonywhere上运行,在flask应用程序中</p>
<pre><code>import requests
headers = {
'Host': 'cdn-api.co-vin.in',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36'
}
url = "https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByPin?pincode=360311&date=15-05-2021"
response = requests.request("GET", url, headers=headers, data={})
</code></pre>
<p>它在部署时给了我以下错误</p>
<pre><code><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD><BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Request blocked.
We cant connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the
app or website owner.
<BR clear="all">
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentati
on.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID: T8CDbBTWmri-1gJ4CIEASotEbtHQjGflb-rCmBASEt1ojwC3R9FN_Q==
</PRE>
<ADDRESS>
</ADDRESS>
</BODY></HTML>
</code></pre>
<p>这在本地主机上正常工作,但在部署时会出现上述错误。请建议是否有任何反向代理或其他部署方式</p>