find('p[x-ref]'); $date = trim($date[0]->innertext); [$day, $month, $year] = explode('.', $date); $image = $html->find('img[alt="tom des tages"]'); $item = []; $item['title'] = "Toms Touché - $date"; $item['uri'] = 'https://taz.de/#!tom=tomdestages'; $item['timestamp'] = mktime(0, 0, 0, $month, $day, $year); $item['content'] = $image[0] . ''; // This isn't good HTML style, but at least syntactically correct $item['uid'] = $image[0]->getAttribute('src'); $this->items[] = $item; } }