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

20 Replies, 1181 Views

Honestly, I just use BS4 because I’m lazy. It does what I need, and I don’t have to think too hard.

Python lxml is for when I need to flex. But most of the time? I’m not flexing. 😂

---

Wow, didn’t expect so many replies!

After reading all this, I tried mixing both—lxml for the initial parse, then BS4 for cleanup. Works *way* better than I thought!

Still hate lxml’s docs tho. Anyone got a favorite cheat sheet or tutorial?

Also, `parsel` looks interesting—gonna check that out next. Thanks y’all!

Messages In This Thread



Users browsing this thread: 1 Guest(s)