Skip to main content

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

See https://github.com/redapple/parslepy/wiki#usage

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

parslepy-0.1.2.tar.gz (9.6 kB view details)

Uploaded Source

File details

Details for the file parslepy-0.1.2.tar.gz.

File metadata

  • Download URL: parslepy-0.1.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for parslepy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ca89a897449010fc5a673d87059b39a8e7a81c0240a5b7ff73041ff512b8017b
MD5 aa67fbe702ee77dbf8f4b4f71f4db7e3
BLAKE2b-256 44fc0f60883d0e0e1db0bed074a8f92dba1e60b35dbea7131efda358fc7620d9

See more details on using hashes here.

Supported by

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