scrape: add howtos for video collage

This commit is contained in:
Mara Karagianni
2024-12-04 13:12:06 +01:00
parent 342a45a4f2
commit ae8cf7247d
2 changed files with 5 additions and 2 deletions

View File

@@ -54,8 +54,8 @@ if response.status_code == 200:
# Define file name and path
img_name = os.path.join(save_folder, f"image_{idx}.jpg")
# Write image data to file
with open(img_name, 'wb') as handler:
handler.write(img_data)
with open(img_name, 'wb') as img_bytes:
img_bytes.write(img_data)
print(f"Downloaded {img_name}")
time.sleep(1)