Parsley extraction library using lxml
Project description
Parslepy lets you extract content from HTML and XML documents where extraction rules are defined using a JSON object or equivalent Python dict, where keys are names you want to assign to extracted content, and values are CSS selectors or XPath expressions.
Parslepy is an implementation of the Parsley extraction language defined here, using lxml and cssselect.
You can nest objects, generate list of objects, and (to a certain extent) mix CSS and XPath.
Parslepy uderstands what lxml and cssselect understand, which is roughly CSS3 selectors and XPath 1.0 expressions.
Documentation & examples
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
File details
Details for the file parslepy-0.3.0.tar.gz
.
File metadata
- Download URL: parslepy-0.3.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15d8ecad85e4c07e9b4f2eaaa9c650e3ce240f7a91feeff2a39f661557906eaf |
|
MD5 | 3963bff7c9fad18cf1a8ba107c54784d |
|
BLAKE2b-256 | c5248f01d3b0aaa70a75644734dd41fcbf3289cc0260ef883f55aaccada9d920 |