returnError('Could not request Alias.', 404); $html = $html->find('#content',0); foreach($html->find('.views-row') as $element) { $item = new \Item(); $item->uri = 'http://alias.sh/'.$element->find('a',0)->href; //$item->thumbnailUri = $element->find('img',0)->getAttribute('data-defer-src'); $item->content = '
'.$element->find('.bash',0)->outertext.''; $item->title = $element->find('a',0)->plaintext; $this->items[] = $item; } } public function getName(){ return 'Alias most used'; } public function getURI(){ return 'http://alias.sh/'; } public function getCacheDuration(){ return 21600; // 6 hours } }