mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-11 18:45:34 +00:00
Strip surrounding whitespace from elements (#89)
This commit is contained in:
committed by
GitHub
parent
dc62bcdfca
commit
cec45a7ad7
@@ -73,7 +73,7 @@ class perform_site_check():
|
||||
soup = BeautifulSoup(r.content, "html.parser")
|
||||
stripped_text_from_html = ""
|
||||
for item in soup.select(css_filter):
|
||||
text = str(item.get_text())+"\n"
|
||||
text = str(item.get_text()).strip() + '\n'
|
||||
stripped_text_from_html += text
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user