summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Birth <markus@birth-online.de>2013-04-10 11:39:35 +0200
committerMarkus Birth <markus@birth-online.de>2013-04-10 11:39:35 +0200
commit58fc79ea37435fe7adbbad4314e1b3f442aad714 (patch)
tree221afd5e99b77ac750caf658c1a811163d5dfd7e
parent60ee6710645c00209131b40074fa87d2c5f52a1b (diff)
downloadyafpp-58fc79ea37435fe7adbbad4314e1b3f442aad714.tar.gz
yafpp-58fc79ea37435fe7adbbad4314e1b3f442aad714.zip
Started parseable mod collection.
-rw-r--r--mods/golem.de.json9
-rw-r--r--mods/heise.de.json10
-rw-r--r--mods/jojosblog.json9
-rw-r--r--mods/n24.de.json9
-rw-r--r--mods/polizei-berlin.json9
-rw-r--r--mods/theoatmeal.json9
-rw-r--r--tests/showmods.php9
7 files changed, 64 insertions, 0 deletions
diff --git a/mods/golem.de.json b/mods/golem.de.json
new file mode 100644
index 0000000..0c319e3
--- /dev/null
+++ b/mods/golem.de.json
@@ -0,0 +1,9 @@
+{
+ "name": "Golem",
+ "feed": "http://rss.golem.de/rss.php?feed=RSS2.0",
+ "match": "golem0Bde0C",
+ "config": {
+ "type": "xpath",
+ "xpath": "article"
+ }
+}
diff --git a/mods/heise.de.json b/mods/heise.de.json
new file mode 100644
index 0000000..4d62cc9
--- /dev/null
+++ b/mods/heise.de.json
@@ -0,0 +1,10 @@
+{
+ "name": "heise.de",
+ "feed": "http://www.heise.de/newsticker/heise-atom.xml",
+ "match": "heise.de",
+ "config": {
+ "type": "xpath",
+ "xpath": "div[@class='meldung_wrapper']",
+ "force_charset": "utf-8"
+ }
+}
diff --git a/mods/jojosblog.json b/mods/jojosblog.json
new file mode 100644
index 0000000..b9c44f5
--- /dev/null
+++ b/mods/jojosblog.json
@@ -0,0 +1,9 @@
+{
+ "name": "Jojo's illustrierter Blog",
+ "feed": "http://blog.beetlebum.de/feed/",
+ "match": "blog.beetlebum.de",
+ "config": {
+ "type": "xpath",
+ "xpath": "div[@class='entry-content']"
+ }
+}
diff --git a/mods/n24.de.json b/mods/n24.de.json
new file mode 100644
index 0000000..691c841
--- /dev/null
+++ b/mods/n24.de.json
@@ -0,0 +1,9 @@
+{
+ "name": "N24.de",
+ "feed": "http://feeds.n24.de/n24/homepage",
+ "match": "n24.de",
+ "config": {
+ "type": "xpath",
+ "xpath": "div[@class='news']"
+ }
+}
diff --git a/mods/polizei-berlin.json b/mods/polizei-berlin.json
new file mode 100644
index 0000000..9fc238f
--- /dev/null
+++ b/mods/polizei-berlin.json
@@ -0,0 +1,9 @@
+{
+ "name": "Polizei Berlin",
+ "feed": "http://www.berlin.de/polizei/presse-fahndung/_rss_presse.xml",
+ "match": "berlin.de/polizei",
+ "config": {
+ "type": "xpath",
+ "xpath": "div[@class='bacontent']"
+ }
+}
diff --git a/mods/theoatmeal.json b/mods/theoatmeal.json
new file mode 100644
index 0000000..cc6d0a9
--- /dev/null
+++ b/mods/theoatmeal.json
@@ -0,0 +1,9 @@
+{
+ "name": "The Oatmeal",
+ "feed": "http://theoatmeal.com/feed/rss",
+ "match": "oatmeal",
+ "config": {
+ "type": "xpath",
+ "xpath": "div[@id='comic']"
+ }
+}
diff --git a/tests/showmods.php b/tests/showmods.php
new file mode 100644
index 0000000..3408435
--- /dev/null
+++ b/tests/showmods.php
@@ -0,0 +1,9 @@
+<?php
+
+$mods = glob('../mods/*.json');
+
+foreach ($mods as $mod) {
+ $json = file_get_contents($mod);
+ $data = json_decode($json, true);
+ echo $mod . ': ' . $data['name'] . PHP_EOL;
+}