movielens-posters icon indicating copy to clipboard operation
movielens-posters copied to clipboard

Update movie_poster.py

Open RoseWebb opened this issue 4 years ago • 1 comments

I have replaced the hardcoded extension with extension from string itself

RoseWebb avatar Oct 03 '20 10:10 RoseWebb

I have tried using the updated movie_poster.py -


FileNotFoundError Traceback (most recent call last) in () 46 filename = 'img/' + movie_id + extension 47 with urllib.request.urlopen(image_url) as response: ---> 48 with open(filename, 'wb') as out_image: 49 out_image.write(response.read()) 50 with open('movie_poster.csv', 'a', newline='') as out_csv:

FileNotFoundError: [Errno 2] No such file or directory: 'img/1.jpg'

Any Suggestions?

TBennett13 avatar May 04 '21 01:05 TBennett13