Forums

pathname error while downloading image through urllib

I'm getting a pathname error while trying to download an image through urllib. It would be great if someone could tell what path needs to be specified. I want to download my pictures in the static folder which is present at /home/Ananya15/flask_project/project/static/ path.

Below is the screenshot of my code and error log :-

enter image description here

enter image description here

is it normal for the '/' in front of the /home path to be missing in the error traceback? also maybe try without special characters like @? what happens if you go to that particular directory- are the files there?