Spaces:
Running
Running
Update tools/scrape_text.py
Browse files- tools/scrape_text.py +1 -1
tools/scrape_text.py
CHANGED
@@ -40,4 +40,4 @@ class ScrapeTextTool(Tool):
|
|
40 |
text_list = [element.text.strip() for element in elements if element.text.strip()]
|
41 |
return "\n".join(text_list) if text_list else "No text found for selector"
|
42 |
except Exception as e:
|
43 |
-
return f"Failed to scrape with selector {selector}: {str(e)}"
|
|
|
40 |
text_list = [element.text.strip() for element in elements if element.text.strip()]
|
41 |
return "\n".join(text_list) if text_list else "No text found for selector"
|
42 |
except Exception as e:
|
43 |
+
return f"Failed to scrape with selector {selector}: {str(e)}"
|