[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, 1188 Views

Lxml’s speed is unreal, but man, it’s *fragile*. One messed-up tag and everything breaks.

BS4 is like a friendly neighbor who doesn’t mind if your lawn’s a mess.

For big jobs, I’ll pre-clean with BS4, then switch to lxml. Extra step, but saves time in the long run.

Messages In This Thread



Users browsing this thread: 1 Guest(s)