Feeds extensible parsers
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
A set of extensible parsers for Feeds.
Provided parsers
- XPath XML & HTML
- QueryPath XML & HTML (requires the QueryPath module)
- JSONPath JSON & JSON lines parser (requires JSONPath)
- JMESPath JSON & JSON lines parser (requires JMESPath and PHP 5.4)
Proposed parsers
- QueryPath JSON parser
- If you have an idea for other parsers that would make sense in this module, create an issue.
QueryPath
To use the QueryPath parsers, download and enable the QueryPath module.
JSONPath
To use the JSONPath parser, place this file in sites/all/libraries/jsonpath and clear the cache.
See the JSONPath expression tester.
Note: The JMESPath parser is preferred if you can meet the requirements.
JMESPath
To use the JMESPath parsers, you'll need Composer, and PHP >= 5.4.
In sites/all/libraries:
$ git clone https://github.com/mtdowling/jmespath.php.git
$ cd jmespath.php
$ composer install
$ drush cc all # Or just clear the cache however you normally would.
Check out http://jmespath.org for documentation and an expression tester.
Development
To run tests locally, the TUnit module is required.
One of the goals of this module is to allow other developers to easily create certain types of parsers. For example, it should be trivial to create a parser for a specific XML format.
Documention has been started, but still needs work.
History
This is the new home for:
The above modules are all in various states of maintenance. This project is meant to combine them so that they can benefit from each other's development and simplify maintenance. There are also some major architectural changes.
There is no upgrade path for the old modules. It remains on the table, but those modules are still maintained and should continue to work.
