Could not request ' . $this->getName() . ': ' . $item['uri'] . '

'; return $item; } $article_html = defaultLinkTo($article_html, $this->getURI()); $top_description = '

' . $article_html->find('div.article_top_description', 0)->innertext . '

'; $hero_image = 'getAttribute('data-src') . '>'; $article_body = $article_html->find('div.TGN_Article_ReadTimeSection', 0); // Convert iframe of Youtube videos to link foreach ($article_body->find('iframe') as $found) { $iframeUrl = $found->getAttribute('src'); if ($iframeUrl) { $text = 'Embedded Youtube video, click here to watch on Youtube.com'; $found->outertext = '

' . $text . '

'; } } // Remove CSS ressources foreach ($article_body->find('link') as $found) { $linkedRessourceUrl = $found->getAttribute('href'); if (str_ends_with($linkedRessourceUrl, '.css')) { $found->outertext = ''; } } $article_body = sanitize($article_body->innertext); $item['content'] = $top_description . $hero_image . $article_body; return $item; } public function collectData() { $feed = static::URI . '/rss'; $this->collectExpandableDatas($feed); } }