diff --git a/bridges/RainbowSixSiegeBridge.php b/bridges/RainbowSixSiegeBridge.php new file mode 100644 index 0000000..27f2e5b --- /dev/null +++ b/bridges/RainbowSixSiegeBridge.php @@ -0,0 +1,32 @@ +find('.comdev'); + + // Start at index 2 to remove highlighted articles + for($i = 2; $i < count($list); $i++){ + $article = $list[$i]; + + $item = array(); + + $uri = $article->find('h3 a', 0)->href; + $uri = 'https://rainbow6.ubisoft.com' . $uri; + $item['uri'] = $uri; + $item['title'] = $article->find('h3 a', 0)->plaintext; + $item['content'] = $article->find('a', 0)->innertext . '
' . $article->find('strong', 0)->plaintext; + $item['timestamp'] = strtotime($article->find('p', 0)->plaintext); + + $this->items[] = $item; + } + } +}