mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-11 18:45:34 +00:00
Use requests's r.text so we dont have to deal with charsets
This commit is contained in:
@@ -63,7 +63,7 @@ class perform_site_check(Thread):
|
||||
|
||||
try:
|
||||
r = requests.get(self.url, headers=headers, timeout=15, verify=False)
|
||||
stripped_text_from_html = html2text.html2text(r.content.decode('utf-8'))
|
||||
stripped_text_from_html = html2text.html2text(r.text)
|
||||
|
||||
# @todo This should be a config option.
|
||||
# Many websites include junk in the links, trackers, etc.. Since we are really a service all about text changes..
|
||||
|
||||
Reference in New Issue
Block a user