collectExpandableDatas(self::URI . '.atom', 5); } protected function parseItem($newsItem){ $item = $this->parseATOMItem($newsItem); $item['content'] = $this->retrieve_lichess_post($item['uri']); return $item; } private function retrieve_lichess_post($blog_post_uri){ if($this->get_cached_time($blog_post_uri) <= strtotime('-24 hours')) $this->remove_from_cache($blog_post_uriuri); $blog_post_html = $this->get_cached($blog_post_uri); $blog_post_div = $blog_post_html->find('#lichess_blog', 0); $post_chapo = $blog_post_div->find('.shortlede', 0)->innertext; $post_content = $blog_post_div->find('.body', 0)->innertext; $content = '
' . $post_chapo . '
'; $content .= '