Started parseable mod collection.
This commit is contained in:
parent
60ee671064
commit
58fc79ea37
9
mods/golem.de.json
Normal file
9
mods/golem.de.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "Golem",
|
||||
"feed": "http://rss.golem.de/rss.php?feed=RSS2.0",
|
||||
"match": "golem0Bde0C",
|
||||
"config": {
|
||||
"type": "xpath",
|
||||
"xpath": "article"
|
||||
}
|
||||
}
|
10
mods/heise.de.json
Normal file
10
mods/heise.de.json
Normal file
@ -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"
|
||||
}
|
||||
}
|
9
mods/jojosblog.json
Normal file
9
mods/jojosblog.json
Normal file
@ -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']"
|
||||
}
|
||||
}
|
9
mods/n24.de.json
Normal file
9
mods/n24.de.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "N24.de",
|
||||
"feed": "http://feeds.n24.de/n24/homepage",
|
||||
"match": "n24.de",
|
||||
"config": {
|
||||
"type": "xpath",
|
||||
"xpath": "div[@class='news']"
|
||||
}
|
||||
}
|
9
mods/polizei-berlin.json
Normal file
9
mods/polizei-berlin.json
Normal file
@ -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']"
|
||||
}
|
||||
}
|
9
mods/theoatmeal.json
Normal file
9
mods/theoatmeal.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "The Oatmeal",
|
||||
"feed": "http://theoatmeal.com/feed/rss",
|
||||
"match": "oatmeal",
|
||||
"config": {
|
||||
"type": "xpath",
|
||||
"xpath": "div[@id='comic']"
|
||||
}
|
||||
}
|
9
tests/showmods.php
Normal file
9
tests/showmods.php
Normal file
@ -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;
|
||||
}
|
Reference in New Issue
Block a user