1
0

Refactoring of init.php

- fetching is now done by a global function in fetch.php. This
  allows to use this functions in test/xpath.php for testing.
- besides of user configuration as explained in README.d json
  files from `mods` are now also loaded and used for fetching
  articles
- loading of json files is done only one time and not for each
  article to process
- test/xpath.php is now a script, which can be used to test a
  configuration from `mods`-directory

Added two mods for 4players and visions.de.

TODO: rewrite README.md
This commit is contained in:
d
2014-05-15 12:42:56 +02:00
parent f668480416
commit 5448bd752d
5 changed files with 274 additions and 207 deletions

11
mods/visions.de.json Normal file

@@ -0,0 +1,11 @@
{
"name": "VISIONS.de",
"author": "boxdot",
"feed": "http://rss.feedsportal.com/c/32350/f/443184/index.rss",
"match": "visions0Bde0C",
"config": {
"type": "xpath",
"xpath": "div[contains(@class, 'marginbt')]",
"force_charset": "utf-8"
}
}