acecalisto3 commited on
Commit
5fa9513
·
verified ·
1 Parent(s): acfa5be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -64,7 +64,11 @@ def monitor_urls(storage_location, urls, scrape_interval, content_type, stop_scr
64
  logging.error(f"Error starting ChromeDriver: {e}")
65
 
66
  # Define a function to start scraping
67
- def start_scraping(storage_location, urls, scrape_interval, content_type, stop_scraping_flag):
 
 
 
 
68
  global CURRENT_TASK, HISTORY
69
 
70
  CURRENT_TASK = f"Monitoring URLs: {', '.join(urls)}"
 
64
  logging.error(f"Error starting ChromeDriver: {e}")
65
 
66
  # Define a function to start scraping
67
+ start_button.click(
68
+ start_scraping,
69
+ inputs=[storage_location, urls, scrape_interval, content_type, stop_scraping_flag],
70
+ outputs=csv_output
71
+ )
72
  global CURRENT_TASK, HISTORY
73
 
74
  CURRENT_TASK = f"Monitoring URLs: {', '.join(urls)}"