Best library to parse HTML with Python 3 and example?
- by TMC
I'm new to Python completely and am using Python 3.1 on Windows (pywin). I need to parse some HTML, to essentially extra values between specific HTML tags and am confused at my array of options, and everything I find is suited for Python 2.x. I've read raves about Beautiful Soup, HTML5Lib and lxml, but I cannot figure out how to install any of these on Windows.
Questions:
What HTML parser do you recommend?
How do I install it?
Do you have a simple example on how to use the recommended library to snag HTML from a specific URL and return the value out of say something like this:
fooLink
(say we want to return "/blahblah")