collectExpandableDatas(self::URI . 'feed/'); } protected function parseItem($newsItem){ $item = $this->parseRSS_2_0_Item($newsItem); $item['content'] = $this->ExtractContent($item['uri']); return $item; } private function ExtractContent($url){ if($this->get_cached_time($url) <= strtotime('-24 hours')) $this->remove_from_cache($url); $article_html = $this->get_cached($url) or $this->returnServerError('Could not request Numerama: '.$url); $contents = $article_html->find('section[class=related-article]', 0)->innertext = ''; // remove related articles block $contents = ''; // add post picture return $contents . $article_html->find('article[class=post-content]', 0)->innertext; // extract the post } public function getCacheDuration() { return 1800; // 30min } }