mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-19 23:56:28 +01:00
Update media_scrapper.py
This commit is contained in:
@@ -498,7 +498,7 @@ def InstagramDownload(url, name, path) -> str:
|
|||||||
return path + "\\" + name + ".mp4"
|
return path + "\\" + name + ".mp4"
|
||||||
elif photo_url:
|
elif photo_url:
|
||||||
response = requests.get(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)
|
f.write(response.content)
|
||||||
return path + "\\" + name + ".jpg"
|
return path + "\\" + name + ".jpg"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user