Add grabber rule for allgemeine-zeitung.de

This commit is contained in:
Frederic Guillot 2015-01-06 20:56:52 -05:00
parent 0da3a8dfa3
commit 75b7511f5f
4 changed files with 27 additions and 10 deletions

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer' . '/autoload_real.php'; require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInita57f23d5e3b273c0241536094b292083::getLoader(); return ComposerAutoloaderInit4bf0deb5f320870196e18154b9d8e434::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInita57f23d5e3b273c0241536094b292083 class ComposerAutoloaderInit4bf0deb5f320870196e18154b9d8e434
{ {
private static $loader; private static $loader;
@ -19,9 +19,9 @@ class ComposerAutoloaderInita57f23d5e3b273c0241536094b292083
return self::$loader; return self::$loader;
} }
spl_autoload_register(array('ComposerAutoloaderInita57f23d5e3b273c0241536094b292083', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInit4bf0deb5f320870196e18154b9d8e434', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(); self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInita57f23d5e3b273c0241536094b292083', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInit4bf0deb5f320870196e18154b9d8e434', 'loadClassLoader'));
$map = require __DIR__ . '/autoload_namespaces.php'; $map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) { foreach ($map as $namespace => $path) {
@ -42,14 +42,14 @@ class ComposerAutoloaderInita57f23d5e3b273c0241536094b292083
$includeFiles = require __DIR__ . '/autoload_files.php'; $includeFiles = require __DIR__ . '/autoload_files.php';
foreach ($includeFiles as $file) { foreach ($includeFiles as $file) {
composerRequirea57f23d5e3b273c0241536094b292083($file); composerRequire4bf0deb5f320870196e18154b9d8e434($file);
} }
return $loader; return $loader;
} }
} }
function composerRequirea57f23d5e3b273c0241536094b292083($file) function composerRequire4bf0deb5f320870196e18154b9d8e434($file)
{ {
require $file; require $file;
} }

View File

@ -162,18 +162,18 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/fguillot/picoFeed.git", "url": "https://github.com/fguillot/picoFeed.git",
"reference": "627d1d48642ef82f8bb0e70870f36151b3c6936d" "reference": "b25b74c8aee8e6af3d9c1b15e0772628ea313e0c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/fguillot/picoFeed/zipball/627d1d48642ef82f8bb0e70870f36151b3c6936d", "url": "https://api.github.com/repos/fguillot/picoFeed/zipball/b25b74c8aee8e6af3d9c1b15e0772628ea313e0c",
"reference": "627d1d48642ef82f8bb0e70870f36151b3c6936d", "reference": "b25b74c8aee8e6af3d9c1b15e0772628ea313e0c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.0" "php": ">=5.3.0"
}, },
"time": "2015-01-06 23:58:29", "time": "2015-01-07 01:50:53",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {

View File

@ -0,0 +1,17 @@
<?php
return array(
'test_url' => 'http://www.allgemeine-zeitung.de/lokales/polizei/zweimal-totalschaden-nach-unfaellen-auf-eisglatten-fahrbahnen-bei-mainz-und-bei-bad-sobernheim-mit-baeumen-kollidiert_14904737.htm',
'body' => array(
'//div[contains(@class, "article")][1]',
),
'strip' => array(
'//read/h1',
'//*[contains(@class, "adsense")]',
'//*[contains(@class, "linkbox")]',
'//*[contains(@class, "info")]',
'//*[@class="skip"]',
'//*[@class="funcs"]',
'//a[contains(@href, "abo-und-services")]'
)
);