pyHTMLParser

Python 3.x library for html parsing

About pyHTMLParser

A simple html parser that constructs DOM tree.
It is aimed to provide jquery like API.


Click a class name in the sidebar to view its methods.

Installation


>> pip install pyHTMLParser
            

Get started!


from pyHTMLParser.Query import Q_open, Q_close, Q

Q_open('http://ishibashijun.github.io')

some_text = Q('#description').text()
print(some_text)

Q_close()
            

Output


>> Python 3.x library for html parsing