What's the best way to build a parser HTML Python for web scraping? or How to efficiently parse HTML

18 Replies, 1957 Views

Wow, thanks for all the suggestions! I tried BeautifulSoup with html5lib, and it *actually* worked on that nightmare site I was stuck on.

Still curious about selectolax though—anyone got a snippet for handling nested broken tags with it?

Also, shoutout to the person who mentioned requests-html. Gonna test that next for JS-heavy pages. Appreciate y’all! 🙌

Messages In This Thread



Users browsing this thread: 1 Guest(s)