My application includes a webscraper which downloads and serves files of a webpage to the user. But the files are not being downloaded. The program works on localhost.
My application includes a webscraper which downloads and serves files of a webpage to the user. But the files are not being downloaded. The program works on localhost.
I see that you started a second thread about this, so I'll reply there.
These are actually different issues. In this issue I am trying to download and save webpage source code files in a directory inside pythonanywhere. But I am unable to do it. No error logs.
You would probably not be able to scrape on a free account, as free accounts have restricted outbound internet access on PythonAnywhere to the allow-list.
That explains a few problems. But is there a solution or workaround?
The solution would be to upgrade the account. Or check if the service in question exposes a public and open API, if so, you could request adding it to our allow-list and use it on free account without the need of scraping.