readabilite: use lxml bs4 parser for speed
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3f92787b38
commit
d424e394d1
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user