1
0

Bugfix in xpath.php

Added selector to ej.ru
This commit is contained in:
boxdot 2014-05-20 09:46:19 +02:00
parent a449223613
commit d42821feda
2 changed files with 5 additions and 4 deletions

View File

@ -5,6 +5,6 @@
"match": "ej.ru",
"config": {
"type": "xpath",
"xpath": "div[@class='txt_e']"
"xpath": "div[@class='text' or @class='txt_e']"
}
}

View File

@ -1,6 +1,6 @@
<?php
require_once('../fetch.php');
require_once(dirname(__FILE__) . '/../fetch.php');
if (count($argv) <= 2) {
echo 'USAGE: php fetch.php [mod_file] [article_url]' . PHP_EOL;
@ -33,5 +33,6 @@ $config = $data['config'];
//
$owner_uid = 100;
$article = array( 'link' => $article_url, 'plugin_data' => '' );
echo fetch_article($article, $config)['content'];
$article = array( 'link' => $article_url );
echo fetch_article($article, $config);