Update media_scrapper.py

This commit is contained in:
Believethehype 2023-12-12 10:49:59 +01:00
parent 9507c160c4
commit fdffcd503b

View File

@ -498,7 +498,7 @@ def InstagramDownload(url, name, path) -> str:
return path + "\\" + name + ".mp4"
elif photo_url:
response = requests.get(photo_url)
with open(path + name + "\\" + ".jpg", "wb") as f:
with open(path + "\\" + name + ".jpg", "wb") as f:
f.write(response.content)
return path + "\\" + name + ".jpg"