diff options
| author | Markus Birth <markus@birth-online.de> | 2013-04-09 12:55:06 +0200 |
|---|---|---|
| committer | Markus Birth <markus@birth-online.de> | 2013-04-09 12:55:06 +0200 |
| commit | 029e78baf2ea9f2e4019370467c3c8c66e654fb4 (patch) | |
| tree | 7b3cd0226cdc5cdad0d59274faa3d7a078cd1547 /README.md | |
| parent | ac7a77656274dbfaeebbaa3b9240c8dbe5579300 (diff) | |
| download | yafpp-029e78baf2ea9f2e4019370467c3c8c66e654fb4.tar.gz yafpp-029e78baf2ea9f2e4019370467c3c8c66e654fb4.zip | |
Added readme
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..b67a8b5 --- /dev/null +++ b/README.md @@ -0,0 +1,53 @@ +ttrss_plugin-af_feedmod +======================= + +Installation +-------------------- + +This is a plugin for Tiny Tiny RSS (tt-rss). It allows you to replace an article's contents by the contents of an element on the linked URL's page. + +Checkout the directory into your plugins folder like this (from tt-RSS root directory): + +```sh +$ cd /var/www/ttrss +$ git clone git://github.com/mbirth/ttrss_plugin-af_feedmod.git plugins/af_feedmod +``` + +Then enable the plugin in preferences. + + +Configuration +-------------------- + +The configuration is done in JSON format. In the preferences, you'll find a new tab called *FeedMod*. Use the large field to enter/modify the configuration data and click the **Save** button to store it. + +A configuration looks like this: + +```json +{ + +"heise.de": { + "type": "xpath", + "xpath": "div[@class='meldung_wrapper']" +}, +"berlin.de/polizei": { + "type": "xpath", + "xpath": "div[@class='bacontent']" +}, +"n24.de": { + "type": "xpath", + "xpath": "div[@class='news']" +}, +"golem0Bde0C": { + "type": "xpath", + "xpath": "article" +} + +} +``` + +The *array key* is part of the URL of the article links(!). You'll notice the `golem0Bde0C` in the last entry: That's because all their articles link to something like `http://rss.feedsportal.com/c/33374/f/578068/p/1/s/3f6db44e/l/0L0Sgolem0Bde0Cnews0Cthis0Eis0Ean0Eexample0A10Erss0Bhtml/story01.htm` and to have the plugin match that URL and not interfere with other feeds using *feedsportal.com*, I used the part `golem0Bde0C`. + +The **type** has to be `xpath` for now. Maybe there will be more types in the future. + +The **xpath** value is the actual Xpath-element to fetch from the linked page. |
