mirror of
https://github.com/simon987/chan_feed.git
synced 2025-12-13 20:49:03 +00:00
assume utf8 encoding
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import datetime
|
||||
import _strptime
|
||||
import re
|
||||
from urllib.parse import urljoin
|
||||
|
||||
@@ -11,7 +10,7 @@ from chan.desuchan_html import DesuChanHtmlChanHelper
|
||||
class FChanHtmlChanHelper(DesuChanHtmlChanHelper):
|
||||
|
||||
def parse_threads_list(self, r):
|
||||
soup = BeautifulSoup(r.text, "html.parser")
|
||||
soup = BeautifulSoup(r.content.decode('utf-8', 'ignore'), "html.parser")
|
||||
|
||||
threads = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user