premire modification qui ne marche pas
This commit is contained in:
parent
1323226677
commit
4f1d4137d4
1 changed files with 4 additions and 5 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue