maintainer = "superbaillot.net"; $this->name = "Footito"; $this->uri = "http://www.footito.fr/"; $this->description = "Footito"; } public function collectData(array $param){ $html = $this->getSimpleHTMLDOM('http://www.footito.fr/') or $this->returnServerError('Could not request Footito.'); foreach($html->find('div.post') as $element) { $item = array(); $content = trim($element->innertext); $content = str_replace("find('.contenu .texte ', 0)->plaintext; $item['title'] = $title; $info = $element->find('div.infos', 0); $item['timestamp'] = strtotime($info->find('time', 0)->datetime); $item['author'] = $info->find('a.auteur', 0)->plaintext; $this->items[] = $item; } } }