readabilite: use lxml bs4 parser for speed
continuous-integration/drone/push Build is passing Details

master
pictuga 2022-01-01 14:52:48 +01:00
parent 3f92787b38
commit d424e394d1
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ import lxml.html.soupparser
def parse(data, encoding=None): def parse(data, encoding=None):
kwargs = {'from_encoding': encoding} if encoding else {} kwargs = {'from_encoding': encoding} if encoding else {}
return lxml.html.soupparser.fromstring(data, **kwargs) return lxml.html.soupparser.fromstring(data, features='lxml', **kwargs)
def count_words(string): def count_words(string):