Forums

Downloading large zip files

Is there any pythonanywhere restriction which would prevent a task from downloading and storing in my 1GB drive space an updated version of a large zip file (approx 200MB) on a daily schedule? The super simple code works on local box but is 403'd from within a pythonanywhere console.

Traceback (most recent call last): File "<stdin>", line 2, in <module> File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.[redacted]/[redacted].zip

Zipfile contains just csv data files (1 per month of the year)

Yes -- we have 100 MiB limit in our UI, have a look at this help page for some tips how to handle it.