find('div.strip>a', 0)->attr['href']);
$item['title'] = $html->find('div.text>h2', 0)->innertext;
$date = preg_replace('/.*, /', '', $item['title']);
$date = preg_replace('/\\d\\d\\.\\//', '', $date);
try {
$item['timestamp'] = DateTime::createFromFormat('d.m.y', $date)
->setTimezone(new DateTimeZone('Europe/Berlin'))
->setTime(0, 0)
->getTimestamp();
} catch (Throwable $ignored) {
$item['timestamp'] = null;
}
$image = $html->find('div.strip>a>img', 0);
$imageUrl = urljoin(self::URI, $image->attr['src']);
$imageAlt = $image->attr['alt'];
$item['content'] = <<
EOD;
$this->items[] = $item;
}
}