Y
Hacker News
new
|
ask
|
show
|
jobs
by
Buttons840
1409 days ago
I've found lxml to be more powerful. The lxml library supports xpaths, which I don't believe Beautiful Soup does?
In other words, consider lxml as well.
2 comments
yifanl
1409 days ago
lxml is supported (mostly) out of the box for BeautifulSoup, so you can it as a parser behind BS4's nicer interface, which I believe the OP does in the linked codebases.
link
traverseda
1409 days ago
I reach for selectolax first if I'm doing relatively tame stuff. Also css selectors are nice.
link