diff --git a/AnimessoBridge.php b/AnimessoBridge.php deleted file mode 100644 index 0a91b92..0000000 --- a/AnimessoBridge.php +++ /dev/null @@ -1,56 +0,0 @@ - array( - 'name' => 'Search ID', - 'required' => true, - 'exampleValue' => '6681897' - ), - )); - - public function getIcon(){ - return 'https://cdn.animes.so/styles/animesso/logo.og.png'; - } - - public function collectData() { - $id = $this->getInput('id'); - // Retrieve webpage - $pageUrl = self::URI . 'suche/' . $id . '//?o=date&c[title_only]=1'; - $html = getSimpleHTMLDOM($pageUrl) - or returnServerError('Could not request webpage: ' . $pageUrl); - - // Process articles - foreach($html->find('div.listBlock.main') as $element) { - - if(count($this->items) >= 10) { - break; - } - - $article_title = trim($element->find('h3', 0)->innertext); - //$article_thumbnail = $element->find('a', 0)->data-thumbnailurl; - $article_uri = $element->find('h3 a', 0)->href; - - //$article_content = '
'; - $article_content = trim(strip_tags($element->find('blockquote.snippet', 0)->innertext)); - $article_uid = trim(strip_tags($element->find('h3', 0)->innertext)); - - // Store article in items array - if (!empty($article_title)) { - $item = array(); - $item['uri'] = self::URI . $article_uri; - $item['title'] = $article_title; - //$item['enclosures'] = array($article_thumbnail); - $item['content'] = $article_content; - $item['uid'] = $article_uid; - $this->items[] = $item; - } - } - } -} diff --git a/KAZENewsBridge.php b/KAZENewsBridge.php deleted file mode 100644 index 32508d4..0000000 --- a/KAZENewsBridge.php +++ /dev/null @@ -1,48 +0,0 @@ -find('div.kaze-news-list__item') as $element) { - - if(count($this->items) >= 10) { - break; - } - - $article_title = trim(strip_tags($element->find('div.kaze-news-list-item__title', 0)->innertext)); - $article_uri = self::URI . substr($element->find('a', 0)->href, 0); - $article_thumbnail = substr($element->find('img', 0)->src, 0); - //$article_content = ''; - $article_content = trim(strip_tags($element->find('div.kaze-news-list-item__descr', 0)->innertext)); - //$article_timestamp = strtotime($element->find('time', 0)->attr['datetime']); - $article_uid = trim(strip_tags($element->find('span.kaze-news-list-item__date', 0)->innertext)); - - // Store article in items array - if (!empty($article_title)) { - $item = array(); - $item['uri'] = $article_uri; - $item['title'] = $article_title; - $item['enclosures'] = array($article_thumbnail); - $item['content'] = $article_content; - //$item['timestamp'] = $article_timestamp; - $item['uid'] = $article_uid; - $this->items[] = $item; - } - } - } -} diff --git a/ThumbzillaFeedBridge.php b/ThumbzillaFeedBridge.php deleted file mode 100644 index cfb855c..0000000 --- a/ThumbzillaFeedBridge.php +++ /dev/null @@ -1,43 +0,0 @@ -find('a.js-thumb') as $element) { - - if(count($this->items) >= 10) { - break; - } - - $article_title = trim(strip_tags($element->find('span.title', 0)->innertext)); - $article_thumbnail = substr($element->find('img', 0)->src, 0); - $article_content = ''; - $article_uid = trim(strip_tags($element->find('span.title', 0)->innertext)); - - // Store article in items array - if (!empty($article_title)) { - $item = array(); - $item['uri'] = $pageUrl; - $item['title'] = $article_title; - $item['content'] = $article_content; - $item['uid'] = $article_uid; - $this->items[] = $item; - } - } - } -}