mirror of
https://github.com/simon987/chan_feed.git
synced 2025-12-19 14:59:02 +00:00
assume utf8 encoding
This commit is contained in:
@@ -58,7 +58,7 @@ class ChanHelper:
|
||||
|
||||
@staticmethod
|
||||
def parse_thread(r):
|
||||
soup = BeautifulSoup(r.text, "html.parser")
|
||||
soup = BeautifulSoup(r.content.decode('utf-8', 'ignore'), "html.parser")
|
||||
|
||||
op_el = soup.find("div", attrs={"class": "innerOP"})
|
||||
yield {
|
||||
|
||||
Reference in New Issue
Block a user