Download File from Canvas using Python

LucasRothman
Community Member

I'm trying to download a file from Canvas using Python. When I use the API to fetch the file by ID I get a response that contains a URL like the following:  /files/{id}/download?download_frd=1. However I can't seem to download this. I've tried using requests.get(url,allow_redirects=True) but I just get redirected to the default login page for my institution. Any help would be appreciated, thanks!

0 Likes