readabilite: use lxml bs4 parser for speed
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3f92787b38
commit
d424e394d1
|
@ -24,7 +24,7 @@ import lxml.html.soupparser
|
|||
|
||||
def parse(data, encoding=None):
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue