diff --git a/bridges/N26Bridge.php b/bridges/N26Bridge.php new file mode 100644 index 00000000000..dd1c423c88d --- /dev/null +++ b/bridges/N26Bridge.php @@ -0,0 +1,37 @@ +find('div.ga') as $article) { + $item = []; + + $item['uri'] = self::URI . $article->find('h2 a', 0)->href; + $item['title'] = $article->find('h2 a', 0)->plaintext; + + $fullArticle = getSimpleHTMLDOM($item['uri']) + or returnServerError('Error while downloading the full article'); + + $dateElement = $fullArticle->find('span[class="fk fl de ch fm by"]', 0); + $item['timestamp'] = strtotime($dateElement->plaintext); + $item['content'] = $fullArticle->find('main article', 0)->innertext; + + $this->items[] = $item; + } + } +}