Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,11 +64,7 @@ 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 |
-
|
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)}"
|
|
|
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)}"
|