scrape: add howtos for video collage
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user