diff options
| author | Roland Angerer <dev@rangerer.at> | 2013-06-19 11:31:31 +0200 |
|---|---|---|
| committer | Roland Angerer <dev@rangerer.at> | 2013-06-19 12:03:15 +0200 |
| commit | 64a06e0c873b4f6429e130c66056a39d72c5c575 (patch) | |
| tree | b204eeb027dbc5fd407513afa175fdbb2f44b116 /README.md | |
| parent | ff7ae3c171aa6562891e9defad88be60a22e20d4 (diff) | |
| download | yafpp-64a06e0c873b4f6429e130c66056a39d72c5c575.tar.gz yafpp-64a06e0c873b4f6429e130c66056a39d72c5c575.zip | |
added cleanup option for nodes fetched via xpath
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -50,7 +50,8 @@ A configuration looks like this: }, "blog.beetlebum.de": { "type": "xpath", - "xpath": "div[@class='entry-content']" + "xpath": "div[@class='entry-content']", + "cleanup": [ "header", "footer" ], } } @@ -62,6 +63,8 @@ The *array key* is part of the URL of the article links(!). You'll notice the `g The **xpath** value is the actual Xpath-element to fetch from the linked page. Omit the leading `//` - they will get prepended automatically. +If **type** was set to `xpath' there is an additional option **cleanup** available. Its an array of Xpath-elements (relative to the fetched node) to remove from the fetched node. Omit the leading `//` - they will get prepended automatically. + **force_charset** allows to override automatic charset detection. If it is omitted, the charset will be parsed from the HTTP headers or loadHTML() will decide on its own. |
