Wow, thanks for all the replies! Didn’t expect so much help.
I tried `soup.find_all('a')` and it worked like a charm—got all the links! Still figuring out how to handle nested tags, though.
Quick Q: What’s the best way to deal with broken HTML? My script crashes sometimes when the page is messy.
(Also, the prettify tip was gold!)
I tried `soup.find_all('a')` and it worked like a charm—got all the links! Still figuring out how to handle nested tags, though.
Quick Q: What’s the best way to deal with broken HTML? My script crashes sometimes when the page is messy.
(Also, the prettify tip was gold!)
