From 04f033f7105b6087e93b7d1a80854c6f8e4312a1 Mon Sep 17 00:00:00 2001 From: Joseph Date: Mon, 31 May 2021 21:27:32 +0100 Subject: [PATCH] [StoriesIGBridge] Remove bridge Website has be unavailable since at least October 2020 https://web.archive.org/web/20201016100555/https://storiesig.com/ --- bridges/StoriesIGBridge.php | 57 ------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 bridges/StoriesIGBridge.php diff --git a/bridges/StoriesIGBridge.php b/bridges/StoriesIGBridge.php deleted file mode 100644 index 9b5f7cbfaa7..00000000000 --- a/bridges/StoriesIGBridge.php +++ /dev/null @@ -1,57 +0,0 @@ - array( - 'name' => 'Instagram username', - 'type' => 'text', - 'required' => true, - 'title' => 'Insert the username here' - ), - ) - ); - - public function collectData(){ - $html = getSimpleHTMLDOM($this->getURI()) - or returnServerError('Failed to receive ' . $this->getURI()); - - $results = $html->find('article'); - - foreach($results as $result) { - - $item = array(); - - $item['title'] = $this->getInput('username') . ' story'; - $item['uri'] = $result->find('div.download', 0)->find('a', 0)->href; - $item['author'] = $this->getInput('username'); - $item['timestamp'] = strtotime($result->find('time', 0)->datetime); - $item['uid'] = $result->find('time', 0)->datetime; - - $item['content'] = $result; - - $this->items[] = $item; - } - } - - public function getURI(){ - $uri = self::URI . '/stories/'; - $uri .= urlencode($this->getInput('username')); - return $uri; - - return parent::getURI(); - } - - public function getName() { - - if (!is_null($this->getInput('username'))) { - return $this->getInput('username') . ' - ' . self::NAME; - } - - return parent::getName(); - } -}