From 9b5bf565b3dfdc49dd6c7b77ec043226599b0a06 Mon Sep 17 00:00:00 2001 From: lukasklinger Date: Thu, 3 Oct 2019 21:58:57 +0200 Subject: [PATCH] [N26Bridge] Updated bridge to reflect changes on N26 blog (#1295) N26 made some changes to their blog, this commit fixes the N26Bridge --- bridges/N26Bridge.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bridges/N26Bridge.php b/bridges/N26Bridge.php index dd1c423c..3b8c0e64 100644 --- a/bridges/N26Bridge.php +++ b/bridges/N26Bridge.php @@ -15,10 +15,10 @@ class N26Bridge extends BridgeAbstract public function collectData() { - $html = getSimpleHTMLDOM(self::URI . '/en-fr/blog-archive') + $html = getSimpleHTMLDOM(self::URI . '/en-eu/blog-archive') or returnServerError('Error while downloading the website content'); - foreach($html->find('div.ga') as $article) { + foreach($html->find('div[class="ag ah ai aj bs bt dx ea fo gx ie if ih ii ij ik s"]') as $article) { $item = []; $item['uri'] = self::URI . $article->find('h2 a', 0)->href; @@ -27,9 +27,9 @@ class N26Bridge extends BridgeAbstract $fullArticle = getSimpleHTMLDOM($item['uri']) or returnServerError('Error while downloading the full article'); - $dateElement = $fullArticle->find('span[class="fk fl de ch fm by"]', 0); + $dateElement = $fullArticle->find('time', 0); $item['timestamp'] = strtotime($dateElement->plaintext); - $item['content'] = $fullArticle->find('main article', 0)->innertext; + $item['content'] = $fullArticle->find('div[class="af ag ah ai an"]', 1)->innertext; $this->items[] = $item; }