open url from pythonanywhere

前端 未结 3 1213
天命终不由人
天命终不由人 2020-11-28 16:02

This code works well on my local machine, but when I upload and run it on pythonanywhere.com it gives me this error.
My Code:

url = \"http://www.codefor         


        
3条回答
  •  情歌与酒
    2020-11-28 16:55

    Free accounts on PythonAnywhere are restricted to a whitelist of sites, http/https only, and access goes via a proxy. There's more info here:

    PythonAnywhere wiki: "why do I get a 403 forbidden error when opening a url?"

提交回复
热议问题