This commit is contained in:
João Moura
2024-05-02 03:04:16 -03:00
parent cf96d5579f
commit a95cbfdc6a

View File

@@ -55,7 +55,6 @@ class SeleniumScrapingTool(BaseTool):
body_text = driver.find_element(By.TAG_NAME, "body").text
content.append(body_text)
else:
driver.find_elements(By.CSS_SELECTOR, css_element)
for element in driver.find_elements(By.CSS_SELECTOR, css_element):
content.append(element.text)
driver.close()