Skip to main content

A simple html parser that constructs DOM tree.

Project description

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 .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyHTMLParser-2.1.0.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file pyHTMLParser-2.1.0.tar.gz.

File metadata

  • Download URL: pyHTMLParser-2.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyHTMLParser-2.1.0.tar.gz
Algorithm Hash digest
SHA256 4f97488f92e016dba3443378525ae83de8c30b1447850c84a1cfcfbed1123fe5
MD5 b4045ca026bf6f3c1ced6bfaf5850b4d
BLAKE2b-256 0b02d5e95ddd0f5d25aaeea972ef46ad0a6f5c60684bbfff691b96a55f0e81c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page