What's the best way to parse HTML/XML with lxml in Python? or How do you handle large XML files effic

14 Replies, 1831 Views

Dude, lxml python is *not* old-school—it's just *that* good. I’ve tried newer libs, and they either match lxml or are worse.

The only thing faster is maybe writing your own C extension, but who has time for that?

If you're worried, just profile your script with `cProfile`. Chances are, the bottleneck isn’t lxml but your network requests or something else.

Messages In This Thread



Users browsing this thread: 1 Guest(s)