skip to navigation
skip to content

pyHTMLParser 2.1.0

A simple html parser that constructs DOM tree.

It is aimed to provide jquery like API.

Example

from pyHTMLParser.Query import Q_open, Q_close, Q

Q_open('http://www.example.com')

second_target_link = Q('a[href$="-target.html"]:nth-child(2)')
print(second_target_link.attr('href'))

>>> http://www.some-target.com/example.html

Q_close()

Documentation

API Docs .

 
File Type Py Version Uploaded on Size
pyHTMLParser-2.1.0.tar.gz (md5) Source 2017-01-20 11KB