returnError('Could not request Flickr.', 404); foreach($html->find('span.photo_container') as $element) { $item = new \Item(); $item->uri = 'http://flickr.com'.$element->find('a',0)->href; $item->thumbnailUri = $element->find('img',0)->getAttribute('data-defer-src'); $item->content = ''; // FIXME: Filter javascript ? $item->title = $element->find('a',0)->title; $this->items[] = $item; } } public function getName(){ return 'Flickr Explore'; } public function getURI(){ return 'http://www.flickr.com/explore'; } public function getCacheDuration(){ return 21600; // 6 hours } }