-
Notifications
You must be signed in to change notification settings - Fork 38
Home
iterationlabs edited this page Sep 13, 2010
·
11 revisions
Parsley is a simple language for data-extraction from XML-like documents (including HTML). Parsley is:
- Blazing fast — Typical HTML parses are sub-50ms.
- Easy to write and understand — Parsley uses your current knowledge of JSON, CSS, and XPath.
- Powerful. Parsley can understand full CSS and XPath, including standard and user-defined functions.
Parselets are data extractors written in Parsley. Here is an example parselet:
{ "title": "h1", "links(a)": [{ "text": ".", "link": "@href" }] }
See more examples in the Parsley Examples section.