From 366d2d66b3fa126cfad7f2ac104e722d5f69d9ed Mon Sep 17 00:00:00 2001 From: John Corser Date: Wed, 26 Feb 2020 17:32:57 -0500 Subject: [PATCH] [RobinhoodSnacks] Add bridge for Robinhood Snacks (#1460) --- bridges/RobinhoodSnacksBridge.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 bridges/RobinhoodSnacksBridge.php diff --git a/bridges/RobinhoodSnacksBridge.php b/bridges/RobinhoodSnacksBridge.php new file mode 100644 index 00000000..e123146c --- /dev/null +++ b/bridges/RobinhoodSnacksBridge.php @@ -0,0 +1,27 @@ +find('#root > div > div > div > div > div > a') as $element) { + if ($element->href === 'https://snacks.robinhood.com/newsletters/page/2/') { + continue; + } + + $this->items[] = array( + 'uri' => $element->href, + 'title' => $element->find('div > div', 3)->plaintext, + 'content' => $element->find('div > div', 4)->plaintext, + ); + } + } +}