projects
/
web.Reader
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0377c2c
)
Pman/Reader/Parse/Baidu.php
author
Chris
<chris@roojs.com>
Mon, 6 Jan 2014 08:54:23 +0000
(16:54 +0800)
committer
Chris
<chris@roojs.com>
Mon, 6 Jan 2014 08:54:23 +0000
(16:54 +0800)
Pman/Reader/Parse/Baidu.php
patch
|
blob
|
history
diff --git
a/Pman/Reader/Parse/Baidu.php
b/Pman/Reader/Parse/Baidu.php
index
93deab0
..
25e3764
100644
(file)
--- a/
Pman/Reader/Parse/Baidu.php
+++ b/
Pman/Reader/Parse/Baidu.php
@@
-120,7
+120,7
@@
class Pman_Reader_Parse_Baidu {
continue;
}
- $q = "//table/tr/td/div/div";
+ $q = "//table/tr/td/div/div
[@class='c-span18']
";
$body = $xp->query($q);
print_r(mb_convert_encoding($newDom->saveHTML($body->item(0)), 'HTML-ENTITIES', "UTF-8"));
$t['body'] = $body->item(0)->nodeValue;