Python HTML/XML parser for simple web scraping.
Project description
What is it?
DHTMLParser is a lightweight HTML/XML parser created for one purpose - quick and easy picking selected tags from DOM.
It can be very useful when you are in need to write own “guerilla” API for some webpage, or a scrapper.
If you want, you can also create HTML/XML documents more easily than by joining strings.
Documentation
Full module documentation can be found here: http://pydhtmlparser.rtfd.org
Changelog
2.0.8
Removed _repair_tags() - it wasn’t really necessary.
2.0.7
Fixed bug in _repair_tags().
2.0.6
Fixed behaviour of toString() and tagToString().
SpecialDict is now derived from OrderedDict.
Changed and added tests of .params attribute (OrderedDict is now used).
2.0.5
Added new method .containsParamSubset() to HTMLElement.
2.0.4
Added op .__eq__() to the SpecialDict.
2.0.3
.find(); Fixed bug which prevented tag_name to be None.
2.0.2
Fixed bugs in .isAlmostEqual().
2.0.1
Fixed bugs in .match().
Fixed broken links in documentation.
2.0.0
Rewritten, refactored, splitted to multiple files.
Added unittest coverage of almost 100% of the code.
Added better selector methods (.wfind(), .match)
Added Sphinx documentation.
Fixed a lot of bugs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyDHTMLParser-2.0.8.tar.gz
.
File metadata
- Download URL: pyDHTMLParser-2.0.8.tar.gz
- Upload date:
- Size: 225.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dd86aef0783b7b5eb12b7889026dec7ef60854ff1bef15299701c706063615c |
|
MD5 | 928b2167251f3bb7647b33eb5681b30a |
|
BLAKE2b-256 | f5663424a7fa58a9b00eafe3e713a6b067fed91b41af076901f7415bf11b8e0d |