From 7268dbaae3f49ca50c37c857628f4102e51af280 Mon Sep 17 00:00:00 2001 From: teromene Date: Thu, 5 Nov 2015 15:50:18 +0000 Subject: [PATCH] Last batch of bridges, all implemented ! Signed-off-by: teromene --- bridges/AllocineFRBridge.php | 20 ++-- bridges/AllocineT5Bridge.php | 20 ++-- bridges/AllocineTueursEnSerieBridge.php | 20 ++-- bridges/AnimeUltimeBridge.php | 39 +++++++ bridges/Arte7Bridge.php | 80 +++++++++++++-- bridges/BandcampBridge.php | 31 ++++-- bridges/BooruprojectBridge.php | 40 ++++++-- bridges/CNETBridge.php | 29 +++--- bridges/CpasbienBridge.php | 31 +++--- bridges/CryptomeBridge.php | 20 ++++ bridges/DailymotionBridge.php | 58 ++++++++--- bridges/DanbooruBridge.php | 33 ++++-- bridges/DauphineLibereBridge.php | 91 +++++++++++++++-- bridges/DollbooruBridge.php | 34 +++++-- bridges/DuckDuckGoBridge.php | 29 +++--- bridges/EZTVBridge.php | 32 +++--- bridges/FacebookBridge.php | 23 +++-- bridges/FlickrExploreBridge.php | 20 ++-- bridges/FlickrTagBridge.php | 37 ++++--- bridges/FourchanBridge.php | 28 +++-- bridges/Freenews.php | 25 +++-- bridges/Gawker.php | 27 +++-- bridges/GelbooruBridge.php | 34 +++++-- bridges/GiphyBridge.php | 39 ++++--- bridges/GooglePlusPostBridge.php | 30 +++--- bridges/GoogleSearchBridge.php | 30 ++++-- bridges/HDWallpapersBridge.php | 37 +++++-- bridges/IdenticaBridge.php | 30 ++++-- bridges/InstagramBridge.php | 33 +++--- bridges/KonachanBridge.php | 33 ++++-- bridges/LeBonCoinBridge.php | 130 ++++++++++++++++++++++++ bridges/LolibooruBridge.php | 34 +++++-- bridges/MilbooruBridge.php | 33 ++++-- bridges/MspabooruBridge.php | 23 +++++ bridges/OpenClassroomsBridge.php | 70 ++++++++++--- bridges/ParuVenduImmoBridge.php | 48 +++++++-- bridges/PickyWallpapersBridge.php | 43 ++++++-- bridges/PinterestBridge.php | 46 ++++++--- bridges/Rule34Bridge.php | 33 ++++-- bridges/Rule34pahealBridge.php | 34 +++++-- bridges/SafebooruBridge.php | 34 +++++-- bridges/SakugabooruBridge.php | 33 ++++-- bridges/ScoopItBridge.php | 30 +++--- bridges/SoundcloudBridge.php | 21 +++- bridges/SuperbWallpapersBridge.php | 41 ++++++-- bridges/T411Bridge.php | 29 ++++-- bridges/TagBoardBridge.php | 30 +++--- bridges/TbibBridge.php | 33 ++++-- bridges/ThePirateBayBridge.php | 31 +++--- bridges/TwitchApiBridge.php | 60 +++++++++++ bridges/TwitterBridge.php | 41 +++++--- bridges/TwitterBridgeClean.php | 41 +++++--- bridges/TwitterBridgeExtended.php | 38 ++++--- bridges/TwitterBridgeTweaked.php | 39 ++++--- bridges/UnsplashBridge.php | 41 ++++++-- bridges/WallpaperStopBridge.php | 45 ++++++-- bridges/WhydBridge.php | 34 ++++--- bridges/WordPressBridge.php | 35 ++++--- bridges/WorldOfTanks.php | 64 ++++++++++-- bridges/XbooruBridge.php | 33 ++++-- bridges/YandereBridge.php | 33 ++++-- 61 files changed, 1697 insertions(+), 616 deletions(-) diff --git a/bridges/AllocineFRBridge.php b/bridges/AllocineFRBridge.php index 6bf5cce3..c95fcf71 100644 --- a/bridges/AllocineFRBridge.php +++ b/bridges/AllocineFRBridge.php @@ -1,17 +1,19 @@ maintainer = "superbaillot.net"; + $this->name = "Allo Cine : Faux Raccord"; + $this->uri = "http://www.allocine.fr/video/programme-12284/saison-24580/"; + $this->description = "Allo Cine : Faux Raccord"; + $this->update = "07/11/2013"; + + } + public function collectData(array $param){ $html = file_get_html($this->_URL) or $this->returnError('Could not request Allo cine.', 404); diff --git a/bridges/AllocineT5Bridge.php b/bridges/AllocineT5Bridge.php index f763428f..b52df289 100644 --- a/bridges/AllocineT5Bridge.php +++ b/bridges/AllocineT5Bridge.php @@ -1,17 +1,19 @@ maintainer = "superbaillot.net"; + $this->name = "Allo Cine : Top 5"; + $this->uri = "http://www.allocine.fr/video/programme-12299/saison-22542/"; + $this->description = "Allo Cine : Top 5 via rss-bridge"; + $this->update = "07/11/2013"; + + } + public function collectData(array $param){ $html = file_get_html($this->_URL) or $this->returnError('Could not request Allo cine.', 404); diff --git a/bridges/AllocineTueursEnSerieBridge.php b/bridges/AllocineTueursEnSerieBridge.php index 772c870f..4320c01b 100644 --- a/bridges/AllocineTueursEnSerieBridge.php +++ b/bridges/AllocineTueursEnSerieBridge.php @@ -1,17 +1,19 @@ maintainer = "superbaillot.net"; + $this->name = "Allo Cine : Tueurs En Serie"; + $this->uri = "http://www.allocine.fr/video/programme-12286/saison-22938/"; + $this->description = "Allo Cine : Tueurs En Serie"; + $this->update = "12/11/2013"; + + } + public function collectData(array $param){ $html = file_get_html($this->_URL) or $this->returnError('Could not request Allo cine.', 404); diff --git a/bridges/AnimeUltimeBridge.php b/bridges/AnimeUltimeBridge.php index 9c89afea..97955de0 100644 --- a/bridges/AnimeUltimeBridge.php +++ b/bridges/AnimeUltimeBridge.php @@ -14,6 +14,45 @@ class AnimeUltimeBridge extends BridgeAbstract { private $filter = 'Releases'; + public function loadMetadatas() { + + $this->maintainer = "ORelio"; + $this->name = "Anime-Ultime"; + $this->uri = "http://www.anime-ultime.net/"; + $this->description = "Returns the 10 newest releases posted on Anime-Ultime"; + $this->update = "2015-10-30"; + + $this->parameters[] = + '[ + { + "name" : "Type", + "type" : "list", + "identifier" : "type", + "values" : [ + { + "name" : "everything", + "value" : "" + + }, + { + "name" : "Anime", + "value" : "A" + + }, + { + "name" : "Drama", + "value" : "D" + }, + { + "name" : "Tokusatsu", + "value" : "T" + + } + ] + } + ]'; + } + public function collectData(array $param) { //Add type filter if provided diff --git a/bridges/Arte7Bridge.php b/bridges/Arte7Bridge.php index fa4dbda8..005c94ef 100644 --- a/bridges/Arte7Bridge.php +++ b/bridges/Arte7Bridge.php @@ -1,15 +1,4 @@ toutes-les-videos;Actu & société=>actu-société;Séries & fiction=>séries-fiction;Cinéma=>cinéma;Arts & spectacles classiques=>arts-spectacles-classiques;Culture pop=>culture-pop;Découverte=>découverte;Histoire=>histoire;Junior=>junior") -* @use2(list|catde="Alle Videos (deutsch)=>alle-videos;Aktuelles & Gesellschaft=>aktuelles-gesellschaft;Fernsehfilme & Serien=>fernsehfilme-serien;Kino=>kino;Kunst & Kultur=>kunst-kultur;Popkultur & Alternativ=>popkultur-alternativ;Entdeckung=>entdeckung;Geschichte=>geschichte;Junior=>junior") -*/ class Arte7Bridge extends BridgeAbstract{ public function loadMetadatas() { @@ -41,6 +30,26 @@ class Arte7Bridge extends BridgeAbstract{ { "name" : "Cinéma", "value" : "cinéma" + }, + { + "name" : "Arts & spectacles classiques", + "value" : "arts-spectacles-classiques" + }, + { + "name" : "Culture pop", + "value" : "culture-pop" + }, + { + "name" : "Découverte", + "value" : "découverte" + }, + { + "name" : "Histoire", + "value" : "histoire" + }, + { + "name" : "Junior", + "value" : "junior" } ] @@ -49,6 +58,55 @@ class Arte7Bridge extends BridgeAbstract{ } ]'; + $this->parameters["Catégorie (Allemand)"] = + '[ + { + "type" : "list", + "identifier" : "catde", + "name" : "Catégorie", + "values" : [ + { + "name" : "Alle Videos (deutsch)", + "value" : "alle-videos" + }, + { + "name" : "Aktuelles & Gesellschaft", + "value" : "aktuelles-gesellschaft" + }, + { + "name" : "Fernsehfilme & Serien", + "value" : "fernsehfilme-serien" + }, + { + "name" : "Kino", + "value" : "kino" + }, + { + "name" : "Kunst & Kultur", + "value" : "kunst-kultur" + }, + { + "name" : "Popkultur & Alternativ", + "value" : "popkultur-alternativ" + }, + { + "name" : "Entdeckung", + "value" : "entdeckung" + }, + { + "name" : "Geschichte", + "value" : "geschichte" + }, + { + "name" : "Junior", + "value" : "junior" + } + ] + + + } + + ]'; } diff --git a/bridges/BandcampBridge.php b/bridges/BandcampBridge.php index 22f213e2..8d1d2aaf 100644 --- a/bridges/BandcampBridge.php +++ b/bridges/BandcampBridge.php @@ -1,18 +1,27 @@ maintainer = "sebsauvage"; + $this->name = "Bandcamp Tag"; + $this->uri = "http://bandcamp.com/"; + $this->description = "New bandcamp release by tag"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "tag", + "type" : "text", + "identifier" : "tag" + + } + ]'; + } + public function collectData(array $param){ $html = ''; if (isset($param['tag'])) { diff --git a/bridges/BooruprojectBridge.php b/bridges/BooruprojectBridge.php index 980d8a83..7440cc2c 100644 --- a/bridges/BooruprojectBridge.php +++ b/bridges/BooruprojectBridge.php @@ -1,17 +1,35 @@ maintainer = "mitsukarenai"; + $this->name = "Booruproject"; + $this->uri = "http://booru.org/"; + $this->description = "Returns images from given page and booruproject instance (****.booru.org)"; + $this->update = "2015-09-12"; + + $this->parameters[] = + '[ + { + "name" : "instance (required)", + "required" : "true", + "identifier" : "i" + }, + { + "name" : "page", + "identifier" : "p" + }, + { + "name" : "tags", + "identifier" : "t" + } + + + ]'; + } + + public function collectData(array $param){ $page = 0; $tags = ''; if (!empty($param['p'])) { diff --git a/bridges/CNETBridge.php b/bridges/CNETBridge.php index 0450d1e8..28ada059 100644 --- a/bridges/CNETBridge.php +++ b/bridges/CNETBridge.php @@ -1,20 +1,25 @@ You may specify a topic, else all topics are selected. -* @maintainer ORelio -* @update 2015-09-10 -* @use1(topic="Topic name") -*/ class CNETBridge extends BridgeAbstract { private $topicName = ''; + public function loadMetadatas() { + + $this->maintainer = "ORelio"; + $this->name = "CNET News"; + $this->uri = "http://www.cnet.com/"; + $this->description = "Returns the newest articles.
You may specify a topic, else all topics are selected."; + $this->update = "2015-09-10"; + + $this->parameters[] = + '[ + { + "name" : "Topic name", + "identifier" : "topic" + } + ]'; + } + public function collectData(array $param) { function ExtractFromDelimiters($string, $start, $end) { diff --git a/bridges/CpasbienBridge.php b/bridges/CpasbienBridge.php index bd78cbd7..220da91e 100644 --- a/bridges/CpasbienBridge.php +++ b/bridges/CpasbienBridge.php @@ -1,16 +1,4 @@ maintainer = "lagaisse"; + $this->name = "Cpasbien Bridge"; + $this->uri = "http://Cpasbien.pw/"; + $this->description = "Returns latest torrent from request query"; + $this->update = "2015-05-17"; + + $this->parameters[] = + '[ + { + "name" : "keyword", + "identifier" : "q" + } + ]'; + + } + + public function collectData(array $param){ $html = ''; if (isset($param['q'])) { /* keyword search mode */ diff --git a/bridges/CryptomeBridge.php b/bridges/CryptomeBridge.php index 59b6dbd3..e12e0c34 100644 --- a/bridges/CryptomeBridge.php +++ b/bridges/CryptomeBridge.php @@ -13,6 +13,26 @@ */ class CryptomeBridge extends BridgeAbstract{ + public function loadMetadatas() { + + $this->maintainer = "BoboTiG"; + $this->name = "Cryptome"; + $this->uri = "http://cryptome.org/"; + $this->description = "Returns the N most recent documents."; + $this->update = ""; + + $this->parameters[] = + '[ + { + "name" : "number of elements", + "identifier" : "n", + "type" : "number", + "exampleValue" : "10" + } + ]'; + } + + public function collectData(array $param){ $html = ''; $num = 20; diff --git a/bridges/DailymotionBridge.php b/bridges/DailymotionBridge.php index 01202fe3..357f2eaa 100644 --- a/bridges/DailymotionBridge.php +++ b/bridges/DailymotionBridge.php @@ -1,22 +1,48 @@ maintainer = "mitsukarenai"; + $this->name = "Dailymotion Bridge"; + $this->uri = "https://www.dailymotion.com/"; + $this->description = "Returns the 5 newest videos by username/playlist or search"; + $this->update = "2014-11-18"; + + $this->parameters["By username"] = + '[ + { + "name" : "username", + "identifier" : "u" + } + ]'; + + $this->parameters["By playlist id"] = + '[ + { + "name" : "playlist id", + "identifier" : "p", + "type" : "number" + } + ]'; + + $this->parameters["From search results"] = + '[ + { + "name" : "Search keyword", + "identifier" : "s" + }, + { + "name" : "Page", + "identifier" : "pa", + "type" : "number" + } + ]'; + } + + public function collectData(array $param){ function getMetadata($id) { diff --git a/bridges/DanbooruBridge.php b/bridges/DanbooruBridge.php index 5cdd4dcf..790b1983 100644 --- a/bridges/DanbooruBridge.php +++ b/bridges/DanbooruBridge.php @@ -1,17 +1,28 @@ maintainer = "mitsukarenai"; + $this->name = "Danbooru"; + $this->uri = "http://donmai.us/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + + } + public function collectData(array $param){ $page = 1;$tags=''; if (isset($param['p'])) { diff --git a/bridges/DauphineLibereBridge.php b/bridges/DauphineLibereBridge.php index 9ce39ae2..3721876e 100644 --- a/bridges/DauphineLibereBridge.php +++ b/bridges/DauphineLibereBridge.php @@ -1,13 +1,88 @@ ;France Monde=>france-monde;Faits Divers=>faits-divers;Économie et Finance =>economie-et-finance;Politique=>politique;Sport=>sport;Ain=>ain;Alpes-de-Haute-Provence=>haute-provence;Hautes-Alpes=>hautes-alpes;Ardèche=>ardeche;Drôme=>drome;Isère Sud=>isere-sud;Isère Nord=>isere-nord;Savoie=>savoie;Haute-Savoie=>haute-savoie;Vaucluse=>vaucluse") -*/ class DauphineLibereBridge extends BridgeAbstract{ - + + public function loadMetadatas() { + + $this->maintainer = "qwertygc"; + $this->name = "DauphineLibereBridge Bridge"; + $this->uri = "http://www.ledauphine.com/"; + $this->description = "Returns the newest articles."; + $this->update = "05/11/2015"; + + + $this->parameters[] = + '[ + { + "name" : "Catégorie de l\'article", + "identifier" : "u", + "type" : "list", + "values" : [ + { + "name" : "À la une", + "value" : "" + }, + { + "name" : "France Monde", + "value" : "france-monde" + }, + { + "name" : "Faits Divers", + "value" : "faits-divers" + }, + { + "name" : "Économie et Finance", + "value" : "economie-et-finance" + }, + { + "name" : "Politique", + "value" : "politique" + }, + { + "name" : "Sport", + "value" : "sport" + }, + { + "name" : "Ain", + "value" : "ain" + }, + { + "name" : "Alpes-de-Haute-Provence", + "value" : "haute-provence" + }, + { + "name" : "Hautes-Alpes", + "value" : "hautes-alpes" + }, + { + "name" : "Ardèche", + "value" : "ardeche" + }, + { + "name" : "Drôme", + "value" : "drome" + }, + { + "name" : "Isère Sud", + "value" : "isere-sud" + }, + { + "name" : "Savoie", + "value" : "savoie" + }, + { + "name" : "Haute-Savoie", + "value" : "haute-savoie" + }, + { + "name" : "Vaucluse", + "value" : "vaucluse" + } + ] + } + ]'; + } + + public function collectData(array $param){ diff --git a/bridges/DollbooruBridge.php b/bridges/DollbooruBridge.php index 631396e8..637fa488 100644 --- a/bridges/DollbooruBridge.php +++ b/bridges/DollbooruBridge.php @@ -1,17 +1,29 @@ maintainer = "mitsukarenai"; + $this->name = "Dollbooru"; + $this->uri = "http://dollbooru.org/"; + $this->description = "Returns images from given page"; + $this->update = "2015-01-20"; + + + $this->parameters[] = + '[ + { + "name" : "page", + "type" : "number", + "identifier" : "p" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + } + public function collectData(array $param){ $page = 0;$tags=''; if (isset($param['p'])) { diff --git a/bridges/DuckDuckGoBridge.php b/bridges/DuckDuckGoBridge.php index 40c86c6c..f0e5b9ae 100644 --- a/bridges/DuckDuckGoBridge.php +++ b/bridges/DuckDuckGoBridge.php @@ -1,18 +1,23 @@ maintainer = "Astalaseven"; + $this->name = "DuckDuckGo"; + $this->uri = "https://duckduckgo.com/"; + $this->description = "Returns most recent results from DuckDuckGo."; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "keyword", + "identifier" : "u" + } + ]'; + } + public function collectData(array $param){ $html = ''; $link = 'http://duckduckgo.com/html/?q='.$param[u].'+sort:date'; diff --git a/bridges/EZTVBridge.php b/bridges/EZTVBridge.php index 3f66ea40..c58348a0 100644 --- a/bridges/EZTVBridge.php +++ b/bridges/EZTVBridge.php @@ -1,19 +1,25 @@ maintainer = "alexAubin"; + $this->name = "EZTV"; + $this->uri = "https://eztv.ch/"; + $this->description = "Returns list of *recent* torrents for a specific show on EZTV. Get showID from URLs in https://eztv.ch/shows/showID/show-full-name."; + $this->update = "2014-01-20"; + + $this->parameters[] = + '[ + { + "name" : "Show ids", + "identifier" : "i", + "exampleValue" : "showID1,showID2,..." + } + ]'; + + } + public function collectData(array $param){ // Make timestamp from relative released time in table diff --git a/bridges/FacebookBridge.php b/bridges/FacebookBridge.php index dc37d5ec..98e7e8b6 100644 --- a/bridges/FacebookBridge.php +++ b/bridges/FacebookBridge.php @@ -1,15 +1,22 @@ maintainer = "teromene"; + $this->name = "Facebook"; + $this->uri = "http://facebook.com/"; + $this->description = "Input a page title or a profile log. For a profile log, please insert the parameter as follow : myExamplePage/132621766841117"; + $this->update = "23/10/2015"; + + $this->parameters[] = + '[ + { + "name" : "Username", + "identifier" : "u" + } + ]'; + } public function collectData(array $param){ diff --git a/bridges/FlickrExploreBridge.php b/bridges/FlickrExploreBridge.php index f5ad292c..c39c4899 100644 --- a/bridges/FlickrExploreBridge.php +++ b/bridges/FlickrExploreBridge.php @@ -1,16 +1,16 @@ maintainer = "sebsauvage"; + $this->name = "Flickr Explore"; + $this->uri = "http://www.flickr.com/explore"; + $this->description = "Returns the latest interesting images from Flickr"; + $this->update = "2014-05-25"; + + } + public function collectData(array $param){ $html = file_get_html('http://www.flickr.com/explore') or $this->returnError('Could not request Flickr.', 404); diff --git a/bridges/FlickrTagBridge.php b/bridges/FlickrTagBridge.php index fa274b15..19977530 100644 --- a/bridges/FlickrTagBridge.php +++ b/bridges/FlickrTagBridge.php @@ -1,18 +1,31 @@ maintainer = "erwang"; + $this->name = "Flickr TagUser"; + $this->uri = "http://www.flickr.com/"; + $this->description = "Returns the tagged or user images from Flickr"; + $this->update = "2014-05-26"; + + $this->parameters["By keyword"] = + '[ + { + "name" : "Keyword", + "identifier" : "q" + } + ]'; + + $this->parameters["By username"] = + '[ + { + "name" : "Username", + "identifier" : "u" + } + ]'; + } + public function collectData(array $param){ $html = file_get_html('http://www.flickr.com/search/?q=vendee&s=rec') or $this->returnError('Could not request Flickr.', 404); if (isset($param['q'])) { /* keyword search mode */ diff --git a/bridges/FourchanBridge.php b/bridges/FourchanBridge.php index d67b68b6..70f0477d 100644 --- a/bridges/FourchanBridge.php +++ b/bridges/FourchanBridge.php @@ -1,16 +1,24 @@ maintainer = "mitsukarenai"; + $this->name = "4chan"; + $this->uri = "https://www.4chan.org/"; + $this->description = "Returns posts from the specified thread"; + $this->update = "2015-02-01"; + + $this->parameters[] = + '[ + { + "name" : "Thread URL", + "identifier" : "t" + } + ]'; + } + + public function collectData(array $param){ if (!isset($param['t'])) diff --git a/bridges/Freenews.php b/bridges/Freenews.php index 65c03298..e1cf094c 100644 --- a/bridges/Freenews.php +++ b/bridges/Freenews.php @@ -1,14 +1,25 @@ maintainer = "mitsukarenai"; + $this->name = "Freenews"; + $this->uri = "http://freenews.fr"; + $this->description = "Un site d'actualité pour les freenautes (mais ne parlant pas que de la freebox). Ne rentrez pas d'id si vous voulez accéder aux actualités générales."; + $this->update = "26/03/2014"; + + $this->parameters[] = + '[ + { + "name" : "Id de la rubrique (sans le \'-\')", + "identifier" : "id" + } + ]'; + } + public function collectData(array $param){ $param['url'] = RSS; parent::collectData($param); diff --git a/bridges/Gawker.php b/bridges/Gawker.php index f8b484ff..08a42f5f 100644 --- a/bridges/Gawker.php +++ b/bridges/Gawker.php @@ -1,16 +1,27 @@ maintainer = "mitsukarenai"; + $this->name = "Gawker media"; + $this->uri = "http://feeds.gawker.com/"; + $this->description = "A bridge allowing access to any of the numerous Gawker media blogs (Lifehacker, deadspin, Kotaku, Jezebel, and so on. Notice you have to give its id to find the RSS stream in gawker maze"; + $this->update = "27/03/2014"; + + $this->parameters[] = + '[ + { + "name" : "site id to put in uri between feeds.gawker.com and /full .. which is obviously not full AT ALL", + "identifier" : "site" + } + ]'; + } + + private function toURI($name) { return RSS_PREFIX.$name.RSS_SUFFIX; } diff --git a/bridges/GelbooruBridge.php b/bridges/GelbooruBridge.php index 86d77a70..3747c40b 100644 --- a/bridges/GelbooruBridge.php +++ b/bridges/GelbooruBridge.php @@ -1,17 +1,29 @@ maintainer = "mitsukarenai"; + $this->name = "Gelbooru"; + $this->uri = "http://gelbooru.com/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + + } + public function collectData(array $param){ $page = 0; if (isset($param['p'])) { diff --git a/bridges/GiphyBridge.php b/bridges/GiphyBridge.php index f3c0d99b..69442f6e 100644 --- a/bridges/GiphyBridge.php +++ b/bridges/GiphyBridge.php @@ -1,21 +1,34 @@ maintainer = "kraoc"; + $this->name = "Giphy Bridge"; + $this->uri = "http://giphy.com/"; + $this->description = "Bridge for giphy.com"; + $this->update = "2014-12-05"; + + $this->parameters["By tag"] = + '[ + { + "name" : "search tag", + "identifier" : "s" + } + ]'; + + $this->parameters["Without tag"] = + '[ + { + "name" : "max number of returned items", + "type" : "number", + "identifier" : "n" + } + ]'; + } + public function collectData(array $param){ $html = ''; $base_url = 'http://giphy.com'; diff --git a/bridges/GooglePlusPostBridge.php b/bridges/GooglePlusPostBridge.php index ab77deea..16b3f100 100644 --- a/bridges/GooglePlusPostBridge.php +++ b/bridges/GooglePlusPostBridge.php @@ -1,21 +1,27 @@ maintainer = "Grummfy"; + $this->name = "Google Plus Post Bridge"; + $this->uri = "http://plus.google.com/"; + $this->description = "Returns user public post (without API)."; + $this->update = "2014-07-20"; + + $this->parameters[] = + '[ + { + "name" : "username or Id", + "identifier" : "username" + } + ]'; + + } + const GOOGLE_PLUS_BASE_URL = 'https://plus.google.com/'; public function collectData(array $param) diff --git a/bridges/GoogleSearchBridge.php b/bridges/GoogleSearchBridge.php index 464b902d..a76b26db 100644 --- a/bridges/GoogleSearchBridge.php +++ b/bridges/GoogleSearchBridge.php @@ -1,25 +1,35 @@ maintainer = "sebsauvage"; + $this->name = "Google search"; + $this->uri = "https://www.google.com/"; + $this->description = "Returns most recent results from Google search."; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "keyword", + "identifier" : "q" + } + ]'; + + } + + public function collectData(array $param){ $html = ''; diff --git a/bridges/HDWallpapersBridge.php b/bridges/HDWallpapersBridge.php index befdaccc..0fc9aaaf 100644 --- a/bridges/HDWallpapersBridge.php +++ b/bridges/HDWallpapersBridge.php @@ -1,20 +1,35 @@ maintainer = "nel50n"; + $this->name = "HD Wallpapers Bridge"; + $this->uri = "http://www.hdwallpapers.in/"; + $this->description = "Returns the latests wallpapers from HDWallpapers"; + $this->update = "2015-04-08"; + + $this->parameters[] = + '[ + { + "name" : "category", + "identifier" : "c" + }, + { + "name" : "max number of wallpapers", + "identifier" : "m" + }, + { + "name" : "resolution", + "identifier" : "r", + "exampleValue" : "1920x1200, 1680x1050, ..." + } + ]'; + } + public function collectData(array $param){ $html = ''; $baseUri = 'http://www.hdwallpapers.in'; diff --git a/bridges/IdenticaBridge.php b/bridges/IdenticaBridge.php index 60ab788d..c5562ee1 100644 --- a/bridges/IdenticaBridge.php +++ b/bridges/IdenticaBridge.php @@ -1,18 +1,26 @@ maintainer = "mitsukarenai"; + $this->name = "Identica Bridge"; + $this->uri = "https://identi.ca/"; + $this->description = "Returns user timelines"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "username", + "identifier" : "u" + } + ]'; + + } + public function collectData(array $param){ $html = ''; if (isset($param['u'])) { /* user timeline mode */ diff --git a/bridges/InstagramBridge.php b/bridges/InstagramBridge.php index 93e1a183..a137eee6 100644 --- a/bridges/InstagramBridge.php +++ b/bridges/InstagramBridge.php @@ -1,19 +1,26 @@ maintainer = "pauder"; + $this->name = "Instagram Bridge"; + $this->uri = "http://instagram.com/"; + $this->description = "Returns the newest images"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "username", + "identifier" : "u" + } + ]'; + + } + public function collectData(array $param){ $html = ''; if (isset($param['u'])) { /* user timeline mode */ diff --git a/bridges/KonachanBridge.php b/bridges/KonachanBridge.php index b4df4076..7c4e8623 100644 --- a/bridges/KonachanBridge.php +++ b/bridges/KonachanBridge.php @@ -1,17 +1,28 @@ maintainer = "mitsukarenai"; + $this->name = "Konachan"; + $this->uri = "http://konachan.com/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + } + public function collectData(array $param){ $page = 1;$tags=''; if (isset($param['p'])) { diff --git a/bridges/LeBonCoinBridge.php b/bridges/LeBonCoinBridge.php index 3a1df702..1563b654 100755 --- a/bridges/LeBonCoinBridge.php +++ b/bridges/LeBonCoinBridge.php @@ -14,6 +14,136 @@ class LeBonCoinBridge extends BridgeAbstract{ + public function loadMetadatas() { + + $this->maintainer = "16mhz"; + $this->name = "LeBonCoin"; + $this->uri = "http://www.leboncoin.fr"; + $this->description = "Returns most recent results from LeBonCoin for a region and a keyword."; + $this->update = "2015-10-30"; + + $this->parameters[] = + '[ + { + "name" : "Keyword", + "identifier" : "k" + }, + { + "name" : "Région", + "identifier" : "r", + "type" : "list", + "values" : [ + { + "name" : "Alsace", + "value" : "alsace" + }, + { + "name" : "Aquitaine", + "value" : "aquitaine" + }, + { + "name" : "Auvergne", + "value" : "auvergne" + }, + { + "name" : "Basse Normandie", + "value" : "basse_normandie" + }, + { + "name" : "Bourgogne", + "value" : "bourgogne" + }, + { + "name" : "Bretagne", + "value" : "bretagne" + }, + { + "name" : "Centre", + "value" : "centre" + }, + { + "name" : "Champagne Ardenne", + "value" : "champagne_ardenne" + }, + { + "name" : "Corse", + "value" : "corse" + }, + { + "name" : "Franche Comté", + "value" : "franche_comte" + }, + { + "name" : "Haute Normandie", + "value" : "haute_normandie" + }, + { + "name" : "Ile de France", + "value" : "ile_de_france" + }, + { + "name" : "Languedoc Roussillon", + "value" : "languedoc_roussillon" + }, + { + "name" : "Limousin", + "value" : "limousin" + }, + { + "name" : "Lorraine", + "value" : "lorraine" + }, + { + "name" : "Midi Pyrénées", + "value" : "midi_pyrenees" + }, + { + "name" : "Nord Pas De Calais", + "value" : "nord_pas_de_calais" + }, + { + "name" : "Pays de la Loire", + "value" : "pays_de_la_loire" + }, + { + "name" : "Picardie", + "value" : "picardie" + }, + { + "name" : "Poitou Charentes", + "value" : "poitou_charentes" + }, + { + "name" : "Provence Alpes Côte d\'Azur", + "value" : "provence_alpes_cote_d_azur" + }, + { + "name" : "Rhône-Alpes", + "value" : "rhone_alpes" + }, + { + "name" : "Guadeloupe", + "value" : "guadeloupe" + }, + { + "name" : "Martinique", + "value" : "martinique" + }, + { + "name" : "Guyane", + "value" : "guyane" + }, + { + "name" : "Réunion", + "value" : "reunion" + } + ] + } + ]'; + + } + + public function collectData(array $param){ $html = ''; diff --git a/bridges/LolibooruBridge.php b/bridges/LolibooruBridge.php index 54111312..38fe4757 100644 --- a/bridges/LolibooruBridge.php +++ b/bridges/LolibooruBridge.php @@ -1,17 +1,29 @@ maintainer = "mitsukarenai"; + $this->name = "Lolibooru"; + $this->uri = "http://lolibooru.moe/"; + $this->description = "Returns images from given page and tags"; + $this->update = "2015-03-21"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + + } + public function collectData(array $param){ $page = 1; $tags = ''; if (isset($param['p'])) { diff --git a/bridges/MilbooruBridge.php b/bridges/MilbooruBridge.php index 9059fa79..cc8e9da3 100644 --- a/bridges/MilbooruBridge.php +++ b/bridges/MilbooruBridge.php @@ -1,17 +1,28 @@ maintainer = "mitsukarenai"; + $this->name = "Milbooru"; + $this->uri = "http://sheslostcontrol.net/moe/shimmie/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + } + public function collectData(array $param){ $page = 0;$tags=''; if (isset($param['p'])) { diff --git a/bridges/MspabooruBridge.php b/bridges/MspabooruBridge.php index b3d3b61a..f949026c 100644 --- a/bridges/MspabooruBridge.php +++ b/bridges/MspabooruBridge.php @@ -12,6 +12,29 @@ */ class MspabooruBridge extends BridgeAbstract{ + public function loadMetadatas() { + + $this->maintainer = "mitsukarenai"; + $this->name = "Mspabooru"; + $this->uri = "http://mspabooru.com/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + + } + public function collectData(array $param){ $page = 0;$tags=''; if (isset($param['p'])) { diff --git a/bridges/OpenClassroomsBridge.php b/bridges/OpenClassroomsBridge.php index 0c8eda71..c3ae019d 100644 --- a/bridges/OpenClassroomsBridge.php +++ b/bridges/OpenClassroomsBridge.php @@ -1,18 +1,64 @@ arts;Code=>code;Design=>design;Entreprise=>business;Numérique=>digital;Sciences=>sciences;Sciences humaines=>humanities;Systèmes d'information=>it;Autres=>others") -*/ class OpenClassroomsBridge extends BridgeAbstract{ + public function loadMetadatas() { + + $this->maintainer = "sebsauvage"; + $this->name = "OpenClassrooms Bridge"; + $this->uri = "https://openclassrooms.com/"; + $this->description = "Returns latest tutorials from OpenClassrooms."; + $this->update = "2015-10-30"; + + + $this->parameters[] = + '[ + { + "name" : "Catégorie", + "identifier" : "u", + "type" : "list", + "values" : [ + { + "name" : "Arts & Culture", + "value" : "arts" + }, + { + "name" : "Code", + "value" : "code" + }, + { + "name" : "Design", + "value" : "design" + }, + { + "name" : "Entreprise", + "value" : "business" + }, + { + "name" : "Numérique", + "value" : "digital" + }, + { + "name" : "Sciences", + "value" : "sciences" + }, + { + "name" : "Sciences Humaines", + "value" : "humainities" + }, + { + "name" : "Systèmes d\'information", + "value" : "it" + }, + { + "name" : "Autres", + "value" : "others" + } + ] + } + ]'; + } + + public function collectData(array $param){ if (empty($param['u'])) { diff --git a/bridges/ParuVenduImmoBridge.php b/bridges/ParuVenduImmoBridge.php index e1453507..a9c38ea4 100644 --- a/bridges/ParuVenduImmoBridge.php +++ b/bridges/ParuVenduImmoBridge.php @@ -1,19 +1,45 @@ maintainer = "polo2ro"; + $this->name = "Paru Vendu Immobilier"; + $this->uri = "http://www.paruvendu.fr/immobilier/"; + $this->description = "Returns the ads from the first page of search result."; + $this->update = "2015-02-02"; + + + $this->parameters[] = + '[ + { + "name": "Minimal surface m²", + "type" : "number", + "identifier" : "minarea" + }, + { + "name" : "Max price", + "type" : "number", + "identifier" : "maxprice" + }, + { + "name" : "Country code", + "type" : "text", + "identifier" : "pa", + "exampleValue" : "FR" + }, + { + "name" : "department numbers or postal codes, comma-separated", + "type" : "text", + "identifier" : "lo" + } + + ]'; + } + public function collectData(array $param) { $html = ''; diff --git a/bridges/PickyWallpapersBridge.php b/bridges/PickyWallpapersBridge.php index 1f47a5c9..87cfb166 100644 --- a/bridges/PickyWallpapersBridge.php +++ b/bridges/PickyWallpapersBridge.php @@ -1,21 +1,42 @@ maintainer = "nel50n"; + $this->name = "PickyWallpapers Bridge"; + $this->uri = "http://www.pickywallpapers.com/"; + $this->description = "Returns the latests wallpapers from PickyWallpapers"; + $this->update = "2014-03-31"; + + $this->parameters[] = + '[ + { + "name" : "Category", + "identifier" : "c" + }, + { + "name" : "subcategory", + "identifier" : "s" + }, + { + "name" : "Max number of wallpapers", + "identifier" : "m", + "type" : "number" + }, + { + "name" : "resolution", + "identifier" : "r", + "exampleValue" : "1920x1200, 1680x1050, ..." + } + + ]'; + } + public function collectData(array $param){ $html = ''; if (!isset($param['c'])) { diff --git a/bridges/PinterestBridge.php b/bridges/PinterestBridge.php index 0f23bb6a..3bb0530c 100644 --- a/bridges/PinterestBridge.php +++ b/bridges/PinterestBridge.php @@ -1,22 +1,40 @@ maintainer = "pauder"; + $this->name = "Pinterest Bridge"; + $this->uri = "http://www.pinterest.com/"; + $this->description = "Returns the newest images on a board"; + $this->update = "2014-05-25"; + + $this->parameters["By username and board"] = + '[ + { + "name" : "username", + "identifier" : "u" + }, + { + "name" : "board", + "identifier" : "b" + + } + ]'; + + $this->parameters["From search"] = + '[ + { + "name" : "Keyword", + "identifier" : "q" + } + ]'; + } + public function collectData(array $param){ $html = ''; if (isset($param['u']) || isset($param['b'])) { diff --git a/bridges/Rule34Bridge.php b/bridges/Rule34Bridge.php index f7f05f03..cda601d7 100644 --- a/bridges/Rule34Bridge.php +++ b/bridges/Rule34Bridge.php @@ -1,17 +1,28 @@ maintainer = "mitsukarenai"; + $this->name = "Rule34"; + $this->uri = "http://rule34.xxx/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + } + public function collectData(array $param){ $page = 0;$tags=''; if (isset($param['p'])) { diff --git a/bridges/Rule34pahealBridge.php b/bridges/Rule34pahealBridge.php index 5bfe9200..3ecab159 100644 --- a/bridges/Rule34pahealBridge.php +++ b/bridges/Rule34pahealBridge.php @@ -1,17 +1,29 @@ maintainer = "mitsukarenai"; + $this->name = "Rule34paheal"; + $this->uri = "http://rule34.paheal.net/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + } + + public function collectData(array $param){ $page = 0;$tags=''; if (isset($param['p'])) { diff --git a/bridges/SafebooruBridge.php b/bridges/SafebooruBridge.php index d33b0d7d..07d702d9 100644 --- a/bridges/SafebooruBridge.php +++ b/bridges/SafebooruBridge.php @@ -1,17 +1,29 @@ maintainer = "mitsukarenai"; + $this->name = "Safebooru"; + $this->uri = "http://safebooru.org/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + + } + public function collectData(array $param){ $page = 0;$tags=''; if (isset($param['p'])) { diff --git a/bridges/SakugabooruBridge.php b/bridges/SakugabooruBridge.php index 860be578..0a99b431 100644 --- a/bridges/SakugabooruBridge.php +++ b/bridges/SakugabooruBridge.php @@ -1,17 +1,28 @@ maintainer = "mitsukarenai"; + $this->name = "Sakugabooru"; + $this->uri = "http://sakuga.yshi.org/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + } + public function collectData(array $param){ $page = 1;$tags=''; if (isset($param['p'])) { diff --git a/bridges/ScoopItBridge.php b/bridges/ScoopItBridge.php index d8d7127f..65511a44 100644 --- a/bridges/ScoopItBridge.php +++ b/bridges/ScoopItBridge.php @@ -1,18 +1,24 @@ maintainer = "Pitchoule"; + $this->name = "ScoopIt"; + $this->uri = "http://www.scoop.it"; + $this->description = "Returns most recent results from ScoopIt."; + $this->update = "2014-06-13"; + + $this->parameters[] = + '[ + { + "name" : "keyword", + "identifier" : "u" + } + ]'; + + } + public function collectData(array $param){ $html = ''; if ($param['u'] != '') { diff --git a/bridges/SoundcloudBridge.php b/bridges/SoundcloudBridge.php index 7bcc6d0a..2b19b232 100644 --- a/bridges/SoundcloudBridge.php +++ b/bridges/SoundcloudBridge.php @@ -15,7 +15,26 @@ class SoundCloudBridge extends BridgeAbstract{ private $request; public $name; - const CLIENT_ID = '0aca19eae3843844e4053c6d8fdb7875'; + + public function loadMetadatas() { + + $this->maintainer = "kranack"; + $this->name = "Soundcloud Bridge"; + $this->uri = "http://www.soundcloud.com/"; + $this->description = "Returns 10 newest music from user profile"; + $this->update = "2015-09-08"; + + $this->parameters[] = + '[ + { + "name" : "username", + "identifier" : "u" + } + ]'; + + } + + const CLIENT_ID = '0aca19eae3843844e4053c6d8fdb7875'; public function collectData(array $param){ diff --git a/bridges/SuperbWallpapersBridge.php b/bridges/SuperbWallpapersBridge.php index c437d924..c996d790 100644 --- a/bridges/SuperbWallpapersBridge.php +++ b/bridges/SuperbWallpapersBridge.php @@ -1,20 +1,39 @@ maintainer = "nel50n"; + $this->name = "Superb Wallpapers Bridge"; + $this->uri = "http://www.superbwallpapers.com/"; + $this->description = "Returns the latests wallpapers from SuperbWallpapers"; + $this->update = "2015-04-08"; + + $this->parameters[] = + '[ + { + "name" : "Category", + "identifier" : "c" + }, + { + "name" : "Max number of wallpapers", + "identifier" : "m", + "type" : "number" + }, + { + "name" : "resolution", + "identifier" : "r", + "exampleValue" : "1920x1200, 1680x1050, ..." + } + + ]'; + + } + + public function collectData(array $param){ $html = ''; $baseUri = 'http://www.superbwallpapers.com'; diff --git a/bridges/T411Bridge.php b/bridges/T411Bridge.php index 8571bb08..db92a96b 100644 --- a/bridges/T411Bridge.php +++ b/bridges/T411Bridge.php @@ -1,17 +1,24 @@ Use url part after '?' mark when using their search engine - * @maintainer ORelio - * @update 2015-10-22 - * @use1(search="search criteria") - */ class T411Bridge extends BridgeAbstract { + public function loadMetadatas() { + + $this->maintainer = "ORelio"; + $this->name = "T411"; + $this->uri = "https://t411.in/"; + $this->description = "Returns the 5 newest torrents with specified search terms
Use url part after '?' mark when using their search engine"; + $this->update = "2015-10-22"; + + $this->parameters[] = + '[ + { + "name" : "Search criteria", + "identifier" : "search" + } + ]'; + } + + public function collectData(array $param) { //Utility function for extracting CDATA fields diff --git a/bridges/TagBoardBridge.php b/bridges/TagBoardBridge.php index 2b9abcee..0a740b1c 100644 --- a/bridges/TagBoardBridge.php +++ b/bridges/TagBoardBridge.php @@ -1,18 +1,24 @@ maintainer = "Pitchoule"; + $this->name = "TagBoard"; + $this->uri = "http://www.TagBoard.com"; + $this->description = "Returns most recent results from TagBoard."; + $this->update = "2014-09-10"; + + $this->parameters[] = + '[ + { + "name" : "keyword", + "identifier" : "u" + } + ]'; + + } + public function collectData(array $param){ $html = ''; $this->request = $param['u']; diff --git a/bridges/TbibBridge.php b/bridges/TbibBridge.php index 48718591..cca0b0b0 100644 --- a/bridges/TbibBridge.php +++ b/bridges/TbibBridge.php @@ -1,17 +1,28 @@ maintainer = "mitsukarenai"; + $this->name = "Tbib"; + $this->uri = "http://tbib.org/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + } + public function collectData(array $param){ $page = 0;$tags=''; if (isset($param['p'])) { diff --git a/bridges/ThePirateBayBridge.php b/bridges/ThePirateBayBridge.php index 12171ecd..adb36419 100644 --- a/bridges/ThePirateBayBridge.php +++ b/bridges/ThePirateBayBridge.php @@ -1,19 +1,24 @@ maintainer = "mitsukarenai"; + $this->name = "The Pirate Bay"; + $this->uri = "https://thepiratebay.vg/"; + $this->description = "Returns results for the keywords. You can put several list of keywords by separating them with a semicolon (e.g. \"one show;another show\")"; + $this->update = "2014-05-26"; + + $this->parameters[] = + '[ + { + "name" : "keywords, separated by semicolons", + "identifier" : "q", + "exampleValue" : "first list;second list;..." + } + ]'; + } + public function collectData(array $param){ function parseDateTimestamp($element){ diff --git a/bridges/TwitchApiBridge.php b/bridges/TwitchApiBridge.php index aec4a9c9..25a08b14 100644 --- a/bridges/TwitchApiBridge.php +++ b/bridges/TwitchApiBridge.php @@ -22,6 +22,66 @@ class TwitchApiBridge extends BridgeAbstract{ // for use in the getName function! private $channel; + + public function loadMetadatas() { + + $this->maintainer = "logmanoriginal"; + $this->name = "Twitch API Bridge"; + $this->uri = "http://www.twitch.tv"; + $this->description = "Returns the newest broadcasts or highlights by channel name using the Twitch API (v3)"; + $this->update = "2015-07-14"; + + $this->parameters["Get channel without limit"] = + '[ + { + "name" : "Channel", + "identifier" : "channel" + }, + { + "name" : "Broadcasts", + "identifier" : "broadcasts", + "type" : "list", + "values" : [ + { + "name" : "Show broadcasts", + "value" : "true" + }, + { + "name" : "Don\'t show broadcasts", + "value" : "false" + } + ] + } + ]'; + $this->parameters["Get channel with limit"] = + '[ + { + "name" : "Channel", + "identifier" : "channel" + }, + { + "name" : "Limit", + "identifier" : "limit", + "type" : "number" + }, + { + "name" : "Broadcasts", + "identifier" : "broadcasts", + "type" : "list", + "values" : [ + { + "name" : "Show broadcasts", + "value" : "true" + }, + { + "name" : "Don\'t show broadcasts", + "value" : "false" + } + ] + } + ]'; + + } public function collectData(array $param){ diff --git a/bridges/TwitterBridge.php b/bridges/TwitterBridge.php index 91101e39..be007e82 100644 --- a/bridges/TwitterBridge.php +++ b/bridges/TwitterBridge.php @@ -1,20 +1,35 @@ maintainer = "mitsukarenai"; + $this->name = "Twitter Bridge"; + $this->uri = "http://twitter.com/"; + $this->description = "Returns user timelines or keyword/hashtag search results (without using their API)."; + $this->update = "2014-05-25"; + + $this->parameters["By keyword or hashtag"] = + '[ + { + "name" : "Keyword or #hashtag", + "identifier" : "q" + } + ]'; + + $this->parameters["By username"] = + '[ + { + "name" : "username", + "identifier" : "u" + } + ]'; + + } + public function collectData(array $param){ $html = ''; if (isset($param['q'])) { /* keyword search mode */ diff --git a/bridges/TwitterBridgeClean.php b/bridges/TwitterBridgeClean.php index 0db6a48e..f804556c 100644 --- a/bridges/TwitterBridgeClean.php +++ b/bridges/TwitterBridgeClean.php @@ -1,20 +1,35 @@ maintainer = "vinzv"; + $this->name = "Twitter Bridge Clean"; + $this->uri = "http://twitter.com/"; + $this->description = "Returns user timelines without username in title or search results for keywords/hashtags (without using their API)."; + $this->update = "2015-03-07"; + + $this->parameters["By keyword or hashtag"] = + '[ + { + "name" : "Keyword or #hashtag", + "identifier" : "q" + } + ]'; + + $this->parameters["By username"] = + '[ + { + "name" : "username", + "identifier" : "u" + } + ]'; + + } + public function collectData(array $param){ $html = ''; if (isset($param['q'])) { /* keyword search mode */ diff --git a/bridges/TwitterBridgeExtended.php b/bridges/TwitterBridgeExtended.php index d1176355..c87d414c 100644 --- a/bridges/TwitterBridgeExtended.php +++ b/bridges/TwitterBridgeExtended.php @@ -1,18 +1,32 @@ maintainer = "mitsukarenai"; + $this->name = "Twitter Bridge Extended"; + $this->uri = "https://twitter.com/"; + $this->description = "(same as Twitter Bridge, but with avatar, replies and RTs)"; + $this->update = "2014-05-25"; + + $this->parameters["By keyword or hashtag"] = + '[ + { + "name" : "Keyword or #hashtag", + "identifier" : "q" + } + ]'; + + $this->parameters["By username"] = + '[ + { + "name" : "username", + "identifier" : "u" + } + ]'; + + } + public function collectData(array $param){ $html = ''; if (isset($param['q'])) { /* keyword search mode */ diff --git a/bridges/TwitterBridgeTweaked.php b/bridges/TwitterBridgeTweaked.php index 92825d12..d91a6043 100644 --- a/bridges/TwitterBridgeTweaked.php +++ b/bridges/TwitterBridgeTweaked.php @@ -1,19 +1,32 @@ maintainer = "kraoc"; + $this->name = "Twitter Bridge Tweaked"; + $this->uri = "https://twitter.com/"; + $this->description = "(same as Twitter Bridge Extended, but with cleaned title & content)"; + $this->update = "2014-12-05"; + + $this->parameters["By keyword or hashtag"] = + '[ + { + "name" : "Keyword or #hashtag", + "identifier" : "q" + } + ]'; + + $this->parameters["By username"] = + '[ + { + "name" : "username", + "identifier" : "u" + } + ]'; + + } + private function containsTLD($string) { preg_match( "/(AC($|\/)|\.AD($|\/)|\.AE($|\/)|\.AERO($|\/)|\.AF($|\/)|\.AG($|\/)|\.AI($|\/)|\.AL($|\/)|\.AM($|\/)|\.AN($|\/)|\.AO($|\/)|\.AQ($|\/)|\.AR($|\/)|\.ARPA($|\/)|\.AS($|\/)|\.ASIA($|\/)|\.AT($|\/)|\.AU($|\/)|\.AW($|\/)|\.AX($|\/)|\.AZ($|\/)|\.BA($|\/)|\.BB($|\/)|\.BD($|\/)|\.BE($|\/)|\.BF($|\/)|\.BG($|\/)|\.BH($|\/)|\.BI($|\/)|\.BIZ($|\/)|\.BJ($|\/)|\.BM($|\/)|\.BN($|\/)|\.BO($|\/)|\.BR($|\/)|\.BS($|\/)|\.BT($|\/)|\.BV($|\/)|\.BW($|\/)|\.BY($|\/)|\.BZ($|\/)|\.CA($|\/)|\.CAT($|\/)|\.CC($|\/)|\.CD($|\/)|\.CF($|\/)|\.CG($|\/)|\.CH($|\/)|\.CI($|\/)|\.CK($|\/)|\.CL($|\/)|\.CM($|\/)|\.CN($|\/)|\.CO($|\/)|\.COM($|\/)|\.COOP($|\/)|\.CR($|\/)|\.CU($|\/)|\.CV($|\/)|\.CX($|\/)|\.CY($|\/)|\.CZ($|\/)|\.DE($|\/)|\.DJ($|\/)|\.DK($|\/)|\.DM($|\/)|\.DO($|\/)|\.DZ($|\/)|\.EC($|\/)|\.EDU($|\/)|\.EE($|\/)|\.EG($|\/)|\.ER($|\/)|\.ES($|\/)|\.ET($|\/)|\.EU($|\/)|\.FI($|\/)|\.FJ($|\/)|\.FK($|\/)|\.FM($|\/)|\.FO($|\/)|\.FR($|\/)|\.GA($|\/)|\.GB($|\/)|\.GD($|\/)|\.GE($|\/)|\.GF($|\/)|\.GG($|\/)|\.GH($|\/)|\.GI($|\/)|\.GL($|\/)|\.GM($|\/)|\.GN($|\/)|\.GOV($|\/)|\.GP($|\/)|\.GQ($|\/)|\.GR($|\/)|\.GS($|\/)|\.GT($|\/)|\.GU($|\/)|\.GW($|\/)|\.GY($|\/)|\.HK($|\/)|\.HM($|\/)|\.HN($|\/)|\.HR($|\/)|\.HT($|\/)|\.HU($|\/)|\.ID($|\/)|\.IE($|\/)|\.IL($|\/)|\.IM($|\/)|\.IN($|\/)|\.INFO($|\/)|\.INT($|\/)|\.IO($|\/)|\.IQ($|\/)|\.IR($|\/)|\.IS($|\/)|\.IT($|\/)|\.JE($|\/)|\.JM($|\/)|\.JO($|\/)|\.JOBS($|\/)|\.JP($|\/)|\.KE($|\/)|\.KG($|\/)|\.KH($|\/)|\.KI($|\/)|\.KM($|\/)|\.KN($|\/)|\.KP($|\/)|\.KR($|\/)|\.KW($|\/)|\.KY($|\/)|\.KZ($|\/)|\.LA($|\/)|\.LB($|\/)|\.LC($|\/)|\.LI($|\/)|\.LK($|\/)|\.LR($|\/)|\.LS($|\/)|\.LT($|\/)|\.LU($|\/)|\.LV($|\/)|\.LY($|\/)|\.MA($|\/)|\.MC($|\/)|\.MD($|\/)|\.ME($|\/)|\.MG($|\/)|\.MH($|\/)|\.MIL($|\/)|\.MK($|\/)|\.ML($|\/)|\.MM($|\/)|\.MN($|\/)|\.MO($|\/)|\.MOBI($|\/)|\.MP($|\/)|\.MQ($|\/)|\.MR($|\/)|\.MS($|\/)|\.MT($|\/)|\.MU($|\/)|\.MUSEUM($|\/)|\.MV($|\/)|\.MW($|\/)|\.MX($|\/)|\.MY($|\/)|\.MZ($|\/)|\.NA($|\/)|\.NAME($|\/)|\.NC($|\/)|\.NE($|\/)|\.NET($|\/)|\.NF($|\/)|\.NG($|\/)|\.NI($|\/)|\.NL($|\/)|\.NO($|\/)|\.NP($|\/)|\.NR($|\/)|\.NU($|\/)|\.NZ($|\/)|\.OM($|\/)|\.ORG($|\/)|\.PA($|\/)|\.PE($|\/)|\.PF($|\/)|\.PG($|\/)|\.PH($|\/)|\.PK($|\/)|\.PL($|\/)|\.PM($|\/)|\.PN($|\/)|\.PR($|\/)|\.PRO($|\/)|\.PS($|\/)|\.PT($|\/)|\.PW($|\/)|\.PY($|\/)|\.QA($|\/)|\.RE($|\/)|\.RO($|\/)|\.RS($|\/)|\.RU($|\/)|\.RW($|\/)|\.SA($|\/)|\.SB($|\/)|\.SC($|\/)|\.SD($|\/)|\.SE($|\/)|\.SG($|\/)|\.SH($|\/)|\.SI($|\/)|\.SJ($|\/)|\.SK($|\/)|\.SL($|\/)|\.SM($|\/)|\.SN($|\/)|\.SO($|\/)|\.SR($|\/)|\.ST($|\/)|\.SU($|\/)|\.SV($|\/)|\.SY($|\/)|\.SZ($|\/)|\.TC($|\/)|\.TD($|\/)|\.TEL($|\/)|\.TF($|\/)|\.TG($|\/)|\.TH($|\/)|\.TJ($|\/)|\.TK($|\/)|\.TL($|\/)|\.TM($|\/)|\.TN($|\/)|\.TO($|\/)|\.TP($|\/)|\.TR($|\/)|\.TRAVEL($|\/)|\.TT($|\/)|\.TV($|\/)|\.TW($|\/)|\.TZ($|\/)|\.UA($|\/)|\.UG($|\/)|\.UK($|\/)|\.US($|\/)|\.UY($|\/)|\.UZ($|\/)|\.VA($|\/)|\.VC($|\/)|\.VE($|\/)|\.VG($|\/)|\.VI($|\/)|\.VN($|\/)|\.VU($|\/)|\.WF($|\/)|\.WS($|\/)|\.XN--0ZWM56D($|\/)|\.XN--11B5BS3A9AJ6G($|\/)|\.XN--80AKHBYKNJ4F($|\/)|\.XN--9T4B11YI5A($|\/)|\.XN--DEBA0AD($|\/)|\.XN--G6W251D($|\/)|\.XN--HGBK6AJ7F53BBA($|\/)|\.XN--HLCJ6AYA9ESC7A($|\/)|\.XN--JXALPDLP($|\/)|\.XN--KGBECHTV($|\/)|\.XN--ZCKZAH($|\/)|\.YE($|\/)|\.YT($|\/)|\.YU($|\/)|\.ZA($|\/)|\.ZM($|\/)|\.ZW)/i", diff --git a/bridges/UnsplashBridge.php b/bridges/UnsplashBridge.php index 791ab4cd..553b226e 100644 --- a/bridges/UnsplashBridge.php +++ b/bridges/UnsplashBridge.php @@ -1,17 +1,36 @@ maintainer = "nel50n"; + $this->name = "Unsplash Bridge"; + $this->uri = "http://unsplash.com/"; + $this->description = "Returns the latests photos from Unsplash"; + $this->update = "2015-03-02"; + + $this->parameters[] = + '[ + { + "name" : "Max number of photos", + "identifier" : "m", + "type" : "number" + }, + { + "name" : "Width", + "identifier" : "w", + "exampleValue" : "1920, 1680, ..." + }, + { + "name" : "JPEG quality", + "identifier" : "q", + "type" : "number" + + } + + ]'; + } + public function collectData(array $param){ $html = ''; $baseUri = 'http://unsplash.com'; diff --git a/bridges/WallpaperStopBridge.php b/bridges/WallpaperStopBridge.php index 9d3e20b2..e88921c1 100644 --- a/bridges/WallpaperStopBridge.php +++ b/bridges/WallpaperStopBridge.php @@ -1,21 +1,44 @@ maintainer = "nel50n"; + $this->name = "WallpaperStop Bridge"; + $this->uri = "http://www.wallpaperstop.com/"; + $this->description = "Returns the latests wallpapers from WallpaperStop"; + $this->update = "2014-11-05"; + + $this->parameters[] = + '[ + { + "name" : "Category", + "identifier" : "c" + }, + { + "name" : "subcategory", + "identifier" : "s" + }, + { + "name" : "Max number of wallpapers", + "identifier" : "m", + "type" : "number" + }, + { + "name" : "resolution", + "identifier" : "r", + "exampleValue" : "1920x1200, 1680x1050, ..." + } + + ]'; + + } + + public function collectData(array $param){ $html = ''; if (!isset($param['c'])) { diff --git a/bridges/WhydBridge.php b/bridges/WhydBridge.php index 060a7b62..96c77c1f 100644 --- a/bridges/WhydBridge.php +++ b/bridges/WhydBridge.php @@ -1,21 +1,27 @@ maintainer = "kranack"; + $this->name = "Whyd Bridge"; + $this->uri = "http://www.whyd.com/"; + $this->description = "Returns 10 newest music from user profile"; + $this->update = "2014-07-18"; + + $this->parameters[] = + '[ + { + "name" : "username/id", + "identifier" : "u" + } + ]'; + + } + public function collectData(array $param){ $html = ''; if (isset($param['u'])) diff --git a/bridges/WordPressBridge.php b/bridges/WordPressBridge.php index 2a182df3..62085154 100644 --- a/bridges/WordPressBridge.php +++ b/bridges/WordPressBridge.php @@ -1,21 +1,32 @@ maintainer = "aledeg"; + $this->name = "Wordpress Bridge"; + $this->uri = "https://wordpress.com/"; + $this->description = "Returns the 3 newest full posts of a Wordpress blog"; + $this->update = "2015-09-05"; + + $this->parameters[] = + '[ + { + "name" : "blog URL", + "required" : "true", + "identifier" : "url" + }, + { + "name" : "Blog name", + "identifier" : "name" + } + ]'; + + } + public function collectData(array $param) { $this->processParams($param); diff --git a/bridges/WorldOfTanks.php b/bridges/WorldOfTanks.php index f4de4773..c6dc7efc 100644 --- a/bridges/WorldOfTanks.php +++ b/bridges/WorldOfTanks.php @@ -1,17 +1,65 @@ fr;English=>en;Español=>es;Deutsch=>de;Čeština=>cs;Polski=>pl;Türkçe=>tr",text|category="Category id") -*/ define('WORLD_OF_TANKS', 'http://worldoftanks.eu/'); define('NEWS', '/news/'); class WorldOfTanks extends HttpCachingBridgeAbstract{ + private $lang = "fr"; public $uri = WORLD_OF_TANKS; - public $name = 'World of tanks news'; + + public function loadMetadatas() { + + $this->maintainer = "mitsukarenai"; + $this->name = "World of Tanks"; + $this->uri = "http://worldoftanks.eu/"; + $this->description = "News about the tank slaughter game."; + $this->update = "2015-09-12"; + + $this->parameters[] = + '[ + { + "name" : "ID de la catégorie", + "type" : "number", + "identifier" : "category" + }, + { + "name" : "Langue", + "identifier" : "lang", + "type" : "list", + "values" : [ + { + "name" : "Français", + "value" : "fr" + }, + { + "name" : "English", + "value" : "en" + }, + { + "name" : "Español", + "value" : "es" + }, + { + "name" : "Deutsch", + "value" : "de" + }, + { + "name" : "Čeština", + "value" : "cs" + }, + { + "name" : "Polski", + "value" : "pl" + }, + { + "name" : "Türkçe", + "value" : "tr" + } + ] + + } + ]'; + } + public function collectData(array $param){ if (!empty($param['lang'])) { diff --git a/bridges/XbooruBridge.php b/bridges/XbooruBridge.php index b575906f..5e0281b9 100644 --- a/bridges/XbooruBridge.php +++ b/bridges/XbooruBridge.php @@ -1,17 +1,28 @@ maintainer = "mitsukarenai"; + $this->name = "Xbooru"; + $this->uri = "http://xbooru.com/"; + $this->description = "Returns images from given page"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + } + public function collectData(array $param){ $page = 0;$tags=''; if (isset($param['p'])) { diff --git a/bridges/YandereBridge.php b/bridges/YandereBridge.php index aeb7fdf8..dd479e0b 100644 --- a/bridges/YandereBridge.php +++ b/bridges/YandereBridge.php @@ -1,17 +1,28 @@ maintainer = "mitsukarenai"; + $this->name = "Yande.re"; + $this->uri = "https://yande.re/"; + $this->description = "Returns images from given page and tags"; + $this->update = "2014-05-25"; + + $this->parameters[] = + '[ + { + "name" : "page", + "identifier" : "p", + "type" : "number" + }, + { + "name" : "tags", + "identifier" : "t" + } + ]'; + } + public function collectData(array $param){ $page = 1; $tags = ''; if (isset($param['p'])) {