acecalisto3 commited on
Commit
d4a8ad2
·
verified ·
1 Parent(s): 9a457e3

Update 1app.py

Browse files
Files changed (1) hide show
  1. 1app.py +1 -1
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)