What's the best way to parse HTML with Python lxml? or Python lxml vs. BeautifulSoup – which one do y

20 Replies, 1195 Views

BS4’s `find_all()` is so intuitive. Lxml’s XPath is powerful, but it’s like learning another language.

If you’re scraping a *lot*, the speed might matter. But for most people, BS4 is just easier.

Fun fact: BS4 can use lxml as a backend. Best of both worlds?

Messages In This Thread



Users browsing this thread: 1 Guest(s)