A fluent interface python library to query html.
To install via pip:
> pip install htmq
Get text inside all the div tags with class=’test’ as a list:
from htmq.html_query import htmq # get html from somewhere htmq(html).all().div(cls='test').text().q()
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.