Spaces:
Runtime error
Runtime error
Update 1app.py
Browse files
1app.py
CHANGED
@@ -635,7 +635,7 @@ def process_urls(url_input, bulk_toggle, action_radio, max_urls, crawl_depth):
|
|
635 |
zip_file_path = temp_dir / "screenshots.zip"
|
636 |
with zipfile.ZipFile(zip_file_path, 'w') as zipf:
|
637 |
for screenshot in screenshots:
|
638 |
-
zipf.write(screenshot[1], arcname=screenshot[1].name)
|
639 |
|
640 |
# Return the results
|
641 |
return str(zip_file_path), screenshots, json.dumps(scraped_data, indent=2)
|
|
|
635 |
zip_file_path = temp_dir / "screenshots.zip"
|
636 |
with zipfile.ZipFile(zip_file_path, 'w') as zipf:
|
637 |
for screenshot in screenshots:
|
638 |
+
zipf.write(screenshot[1], arcname=Path(screenshot[1]).name) # Use string for writing
|
639 |
|
640 |
# Return the results
|
641 |
return str(zip_file_path), screenshots, json.dumps(scraped_data, indent=2)
|