1
0
Fork 0
forked from blallo/rss-bridge

premire modification qui ne marche pas

This commit is contained in:
Nicolas Delsaux 2014-02-04 18:00:11 +01:00
parent 1323226677
commit 4f1d4137d4

View file

@ -12,17 +12,16 @@ class LesJoiesDuCodeBridge extends BridgeAbstract{
foreach($html->find('div.content-holder ul li') as $element) { foreach($html->find('div.content-holder ul li') as $element) {
$item = new Item(); $item = new Item();
$temp = $element->find('h3 a', 0);
$titreElement = $element->find('.title-holder .article-title a'); $titreElement = $element->find('.title-holder .article-title a');
$titre = $titreElement-> $titre = $titreElement->innertext
$url = $temp->href; $url = $titreElement->href;
$temp = $element->find('div.text-container', 0); $temp = $element->find('div.text-container', 0);
$content = $temp->innertext; $content = $temp->innertext;
$auteur = $temp->find('.c1 em', 0); $auteur = $element->find('div.header-holder', 0);
$pos = strpos($auteur->innertext, "by"); $pos = strpos($auteur->innertext, "par");
if($pos > 0) if($pos > 0)
{ {