mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-23 01:55:27 +03:00
Merge branch 'JSON2array' of https://framagit.org/peetah/rss-bridge
This commit is contained in:
commit
6fd0bdd21e
131 changed files with 1486 additions and 2525 deletions
|
@ -9,7 +9,6 @@ class ABCTabsBridge extends BridgeAbstract{
|
|||
$this->name = "ABC Tabs Bridge";
|
||||
$this->uri = "http://www.abc-tabs.com/";
|
||||
$this->description = "Returns 22 newest tabs";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ class AcrimedBridge extends RssExpander{
|
|||
$this->name = "Acrimed Bridge";
|
||||
$this->uri = "http://www.acrimed.org/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = "2016-08-09";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,34 +7,21 @@ class AllocineFRBridge extends BridgeAbstract{
|
|||
$this->name = "Allo Cine Bridge";
|
||||
$this->uri = "http://www.allocine.fr";
|
||||
$this->description = "Bridge for allocine.fr";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "category",
|
||||
"identifier" : "category",
|
||||
"type" : "list",
|
||||
"required" : true,
|
||||
"exampleValue" : "Faux Raccord",
|
||||
"title" : "Select your category",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "Faux Raccord",
|
||||
"value" : "faux-raccord"
|
||||
},
|
||||
{
|
||||
"name" : "Top 5",
|
||||
"value" : "top-5"
|
||||
},
|
||||
{
|
||||
"name" : "Tueurs En Serie",
|
||||
"value" : "tuers-en-serie"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'category'=>array(
|
||||
'name'=>'category',
|
||||
'type'=>'list',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'Faux Raccord',
|
||||
'title'=>'Select your category',
|
||||
'values'=>array(
|
||||
'Faux Raccord'=>'faux-raccord',
|
||||
'Top 5'=>'top-5',
|
||||
'Tueurs En Serie'=>'tuers-en-serie'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $params){
|
||||
|
@ -64,7 +51,7 @@ class AllocineFRBridge extends BridgeAbstract{
|
|||
// Update bridge name to match selection
|
||||
$this->name .= ' : ' . $category;
|
||||
|
||||
$html = $this->getSimpleTMLOM($this->uri) or $this->returnServerError("Could not request {$this->uri}!");
|
||||
$html = $this->getSimpleHTMLDOM($this->uri) or $this->returnServerError("Could not request {$this->uri}!");
|
||||
|
||||
foreach($html->find('figure.media-meta-fig') as $element)
|
||||
{
|
||||
|
|
|
@ -9,38 +9,19 @@ class AnimeUltimeBridge extends BridgeAbstract {
|
|||
$this->name = 'Anime-Ultime';
|
||||
$this->uri = 'http://www.anime-ultime.net/';
|
||||
$this->description = 'Returns the 10 newest releases posted on Anime-Ultime';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Type",
|
||||
"type" : "list",
|
||||
"identifier" : "type",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "Everything",
|
||||
"value" : ""
|
||||
|
||||
},
|
||||
{
|
||||
"name" : "Anime",
|
||||
"value" : "A"
|
||||
|
||||
},
|
||||
{
|
||||
"name" : "Drama",
|
||||
"value" : "D"
|
||||
},
|
||||
{
|
||||
"name" : "Tokusatsu",
|
||||
"value" : "T"
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'type'=>array(
|
||||
'name'=>'Type',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'Everything'=>'',
|
||||
'Anime'=>'A',
|
||||
'Drama'=>'D',
|
||||
'Tokusatsu'=>'T'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -3,67 +3,68 @@
|
|||
#error_reporting(E_ALL);
|
||||
class ArstechnicaBridge extends BridgeAbstract {
|
||||
|
||||
public function loadMetadatas() {
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = "prysme";
|
||||
$this->name = "ArstechnicaBridge";
|
||||
$this->uri = "http://arstechnica.com";
|
||||
$this->description = "The PC enthusiast's resource. Power users and the tools they love, without computing religion";
|
||||
$this->update = '2016-08-17';
|
||||
$this->maintainer = "prysme";
|
||||
$this->name = "ArstechnicaBridge";
|
||||
$this->uri = "http://arstechnica.com";
|
||||
$this->description = "The PC enthusiast's resource. Power users and the tools they love, without computing religion";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
function StripWithDelimiters($string, $start, $end) {
|
||||
while (strpos($string, $start) !== false) {
|
||||
$section_to_remove = substr($string, strpos($string, $start));
|
||||
$section_to_remove = substr($section_to_remove, 0, strpos($section_to_remove, $end) + strlen($end));
|
||||
$string = str_replace($section_to_remove, '', $string);
|
||||
} return $string;
|
||||
}
|
||||
function StripCDATA($string) {
|
||||
$string = str_replace('<![CDATA[', '', $string);
|
||||
$string = str_replace(']]>', '', $string);
|
||||
return $string;
|
||||
}
|
||||
function StripWithDelimiters($string, $start, $end) {
|
||||
while (strpos($string, $start) !== false) {
|
||||
$section_to_remove = substr($string, strpos($string, $start));
|
||||
$section_to_remove = substr($section_to_remove, 0, strpos($section_to_remove, $end) + strlen($end));
|
||||
$string = str_replace($section_to_remove, '', $string);
|
||||
} return $string;
|
||||
}
|
||||
|
||||
function ExtractContent($url) {
|
||||
#echo $url;
|
||||
$html2 = getSimpleHTMLDOM($url);
|
||||
function StripCDATA($string) {
|
||||
$string = str_replace('<![CDATA[', '', $string);
|
||||
$string = str_replace(']]>', '', $string);
|
||||
return $string;
|
||||
}
|
||||
|
||||
$text = $html2->find("section[id='article-guts']", 0);
|
||||
function ExtractContent($url) {
|
||||
#echo $url;
|
||||
$html2 = $this->getSimpleHTMLDOM($url);
|
||||
|
||||
$text = $html2->find("section[id='article-guts']", 0);
|
||||
/*foreach ($text->find('<aside id="social-left">') as $node)
|
||||
{ $node = NULL; }*/
|
||||
$text = StripWithDelimiters($text->innertext,'<aside id="social-left">','</aside>');
|
||||
$text = StripWithDelimiters($text,'<figcaption class="caption">','</figcaption>');
|
||||
$text = StripWithDelimiters($text,'<div class="gallery shortcode-gallery">','</div>');
|
||||
//error_log("ICI", 0);
|
||||
//error_log($text, 0);
|
||||
{ $node = NULL; }*/
|
||||
$text = $this->StripWithDelimiters($text->innertext,'<aside id="social-left">','</aside>');
|
||||
$text = $this->StripWithDelimiters($text,'<figcaption class="caption">','</figcaption>');
|
||||
$text = $this->StripWithDelimiters($text,'<div class="gallery shortcode-gallery">','</div>');
|
||||
//error_log("ICI", 0);
|
||||
//error_log($text, 0);
|
||||
|
||||
return $text;
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
$html = $this->getSimpleHTMLDOM('http://feeds.arstechnica.com/arstechnica/index') or $this->returnServerError('Could not request NextInpact.');
|
||||
$limit = 0;
|
||||
public function collectData(array $param) {
|
||||
|
||||
foreach($html->find('item') as $element) {
|
||||
if($limit < 5) {
|
||||
$item = new \Item();
|
||||
$item->title = StripCDATA($element->find('title', 0)->innertext);
|
||||
$item->uri = StripCDATA($element->find('guid', 0)->plaintext);
|
||||
$item->author = StripCDATA($element->find('author', 0)->innertext);
|
||||
$item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
|
||||
$item->content = ExtractContent($item->uri);
|
||||
//$item->content = $item->uri;
|
||||
$this->items[] = $item;
|
||||
$limit++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
return 7200; // 2h
|
||||
}
|
||||
$html = $this->getSimpleHTMLDOM('http://feeds.arstechnica.com/arstechnica/index') or $this->returnServerError('Could not request NextInpact.');
|
||||
$limit = 0;
|
||||
|
||||
foreach($html->find('item') as $element) {
|
||||
if($limit < 5) {
|
||||
$item = new \Item();
|
||||
$item->title = $this->StripCDATA($element->find('title', 0)->innertext);
|
||||
$item->uri = $this->StripCDATA($element->find('guid', 0)->plaintext);
|
||||
$item->author = $this->StripCDATA($element->find('author', 0)->innertext);
|
||||
$item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
|
||||
$item->content = $this->ExtractContent($item->uri);
|
||||
//$item->content = $item->uri;
|
||||
$this->items[] = $item;
|
||||
$limit++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
return 7200; // 2h
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -7,106 +7,42 @@ class Arte7Bridge extends BridgeAbstract{
|
|||
$this->name = "Arte +7";
|
||||
$this->uri = "http://www.arte.tv/";
|
||||
$this->description = "Returns newest videos from ARTE +7";
|
||||
$this->update = "2016-08-09";
|
||||
$this->parameters["Catégorie (Français)"] =
|
||||
'[
|
||||
{
|
||||
"type" : "list",
|
||||
"identifier" : "catfr",
|
||||
"name" : "Catégorie",
|
||||
"values" : [
|
||||
{
|
||||
"name" : "Toutes les vidéos (français)",
|
||||
"value" : "toutes-les-videos"
|
||||
},
|
||||
{
|
||||
"name" : "Actu & société",
|
||||
"value" : "actu-société"
|
||||
},
|
||||
{
|
||||
"name" : "Séries & fiction",
|
||||
"value" : "séries-fiction"
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
$this->parameters["Catégorie (Français)"] = array(
|
||||
'catfr'=>array(
|
||||
'type'=>'list',
|
||||
'name'=>'Catégorie',
|
||||
'values'=>array(
|
||||
'Toutes les vidéos (français)'=>'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'
|
||||
|
||||
]
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
]';
|
||||
$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"
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
}
|
||||
|
||||
]';
|
||||
$this->parameters["Catégorie (Allemand)"] = array(
|
||||
'catde'=>array(
|
||||
'type'=>'list',
|
||||
'name'=>'Catégorie',
|
||||
'values'=>array(
|
||||
'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'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -7,15 +7,12 @@ class AskfmBridge extends BridgeAbstract{
|
|||
$this->name = "Ask.fm Answers";
|
||||
$this->uri = "http://ask.fm/";
|
||||
$this->description = "Returns answers from an Ask.fm user";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters["Ask.fm username"] =
|
||||
'[
|
||||
{
|
||||
"name" : "Username",
|
||||
"identifier" : "u"
|
||||
}
|
||||
]';
|
||||
$this->parameters["Ask.fm username"] = array(
|
||||
'u'=>array(
|
||||
'name'=>'Username'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -9,17 +9,13 @@ class BandcampBridge extends BridgeAbstract{
|
|||
$this->name = "Bandcamp Tag";
|
||||
$this->uri = "http://bandcamp.com/";
|
||||
$this->description = "New bandcamp release by tag";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "tag",
|
||||
"type" : "text",
|
||||
"identifier" : "tag"
|
||||
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'tag'=>array(
|
||||
'name'=>'tag',
|
||||
'type'=>'text'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -5,7 +5,6 @@ class BastaBridge extends BridgeAbstract{
|
|||
$this->name = "Bastamag Bridge";
|
||||
$this->uri = "http://www.bastamag.net/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -7,7 +7,6 @@ class BlaguesDeMerdeBridge extends BridgeAbstract{
|
|||
$this->name = "Blagues De Merde";
|
||||
$this->uri = "http://www.blaguesdemerde.fr/";
|
||||
$this->description = "Blagues De Merde";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,26 +7,15 @@ class BooruprojectBridge extends BridgeAbstract{
|
|||
$this->name = "Booruproject";
|
||||
$this->uri = "http://booru.org/";
|
||||
$this->description = "Returns images from given page and booruproject instance (****.booru.org)";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "instance (required)",
|
||||
"required" : true,
|
||||
"identifier" : "i"
|
||||
},
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
|
||||
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'i'=>array(
|
||||
'name'=>'instance (required)',
|
||||
'required'=>true
|
||||
),
|
||||
'p'=>array('name'=>'page'),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ class CADBridge extends BridgeAbstract{
|
|||
$this->name = "CAD Bridge";
|
||||
$this->uri = "http://www.cad-comic.com/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function CADExtractContent($url) {
|
||||
|
|
|
@ -9,15 +9,10 @@ class CNETBridge extends BridgeAbstract {
|
|||
$this->name = 'CNET News';
|
||||
$this->uri = 'http://www.cnet.com/';
|
||||
$this->description = 'Returns the newest articles. <br /> You may specify a topic found in some section URLs, else all topics are selected.';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Topic name",
|
||||
"identifier" : "topic"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'topic'=>array('name'=>'Topic name')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -5,31 +5,26 @@ class CastorusBridge extends BridgeAbstract {
|
|||
$this->name = "Castorus Bridge";
|
||||
$this->uri = 'http://www.castorus.com';
|
||||
$this->description = "Returns the latest changes";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters["Get latest changes"] = '[]';
|
||||
$this->parameters["Get latest changes via ZIP code"] =
|
||||
'[
|
||||
{
|
||||
"name": "ZIP code",
|
||||
"identifier" : "zip",
|
||||
"type" : "text",
|
||||
"required" : true,
|
||||
"exampleValue" : "74910, 74",
|
||||
"title" : "Insert ZIP code (complete or partial)"
|
||||
}
|
||||
]';
|
||||
$this->parameters["Get latest changes via city name"] =
|
||||
'[
|
||||
{
|
||||
"name": "City name",
|
||||
"identifier" : "city",
|
||||
"type" : "text",
|
||||
"required" : true,
|
||||
"exampleValue" : "Seyssel, Seys",
|
||||
"title" : "Insert city name (complete or partial)"
|
||||
}
|
||||
]';
|
||||
$this->parameters["Get latest changes"] = array();
|
||||
$this->parameters["Get latest changes via ZIP code"] = array(
|
||||
'zip'=>array(
|
||||
'name'=>'ZIP code',
|
||||
'type'=>'text',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'74910, 74',
|
||||
'title'=>'Insert ZIP code (complete or partial)'
|
||||
)
|
||||
);
|
||||
$this->parameters["Get latest changes via city name"] = array(
|
||||
'city'=>array(
|
||||
'name'=>'City name',
|
||||
'type'=>'text',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'Seyssel, Seys',
|
||||
'title'=>'Insert city name (complete or partial)'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// Extracts the tile from an actitiy
|
||||
|
|
|
@ -6,7 +6,6 @@ class CollegeDeFranceBridge extends BridgeAbstract{
|
|||
$this->name = "CollegeDeFrance";
|
||||
$this->uri = "http://www.college-de-france.fr/";
|
||||
$this->description = "Returns the latest audio and video from CollegeDeFrance";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -6,7 +6,6 @@ class CommonDreamsBridge extends BridgeAbstract{
|
|||
$this->name = "CommonDreams Bridge";
|
||||
$this->uri = "http://www.commondreams.org/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function CommonDreamsExtractContent($url) {
|
||||
|
|
|
@ -7,7 +7,6 @@ class CopieDoubleBridge extends BridgeAbstract{
|
|||
$this->name = "CopieDouble";
|
||||
$this->uri = "http://www.copie-double.com/";
|
||||
$this->description = "CopieDouble";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ class CourrierInternationalBridge extends BridgeAbstract{
|
|||
$this->name = "Courrier International Bridge";
|
||||
$this->uri = "http://CourrierInternational.fr/";
|
||||
$this->description = "Courrier International bridge";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -24,17 +24,14 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{
|
|||
$this->name = "Cpasbien Bridge";
|
||||
$this->uri = "http://www.cpasbien.io";
|
||||
$this->description = "Returns latest torrents from a request query";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Search",
|
||||
"identifier" : "q",
|
||||
"required" : true,
|
||||
"title" : "Type your search"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'q'=>array(
|
||||
'name'=>'Search',
|
||||
'required'=>true,
|
||||
'title'=>'Type your search'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,17 +7,14 @@ class CryptomeBridge extends BridgeAbstract{
|
|||
$this->name = "Cryptome";
|
||||
$this->uri = "http://cryptome.org/";
|
||||
$this->description = "Returns the N most recent documents.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "number of elements",
|
||||
"identifier" : "n",
|
||||
"type" : "number",
|
||||
"exampleValue" : "10"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'n'=>array(
|
||||
'name'=>'number of elements',
|
||||
'type'=>'number',
|
||||
'exampleValue'=>10
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -9,54 +9,38 @@ class DailymotionBridge extends BridgeAbstract{
|
|||
$this->name = "Dailymotion Bridge";
|
||||
$this->uri = "https://www.dailymotion.com/";
|
||||
$this->description = "Returns the 5 newest videos by username/playlist or search";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters["By username"] =
|
||||
'[
|
||||
{
|
||||
"name" : "username",
|
||||
"identifier" : "u"
|
||||
}
|
||||
]';
|
||||
$this->parameters["By username"] = array(
|
||||
'u'=>array('name'=>'username')
|
||||
);
|
||||
|
||||
$this->parameters["By playlist id"] =
|
||||
'[
|
||||
{
|
||||
"name" : "playlist id",
|
||||
"identifier" : "p",
|
||||
"type" : "text"
|
||||
}
|
||||
]';
|
||||
$this->parameters["By playlist id"] = array(
|
||||
'p'=>array(
|
||||
'name'=>'playlist id',
|
||||
'type'=>'text')
|
||||
);
|
||||
|
||||
$this->parameters["From search results"] =
|
||||
'[
|
||||
{
|
||||
"name" : "Search keyword",
|
||||
"identifier" : "s"
|
||||
},
|
||||
{
|
||||
"name" : "Page",
|
||||
"identifier" : "pa",
|
||||
"type" : "number"
|
||||
}
|
||||
]';
|
||||
$this->parameters["From search results"] = array(
|
||||
's'=>array('name'=>'Search keyword'),
|
||||
'pa'=>array(
|
||||
'name'=>'Page',
|
||||
'type'=>'number'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
function getMetadata($id) {
|
||||
$metadata=array();
|
||||
$html2 = $this->getSimpleHTMLDOM('http://www.dailymotion.com/video/'.$id) or $this->returnServerError('Could not request Dailymotion.');
|
||||
$metadata['title'] = $html2->find('meta[property=og:title]', 0)->getAttribute('content');
|
||||
$metadata['timestamp'] = strtotime($html2->find('meta[property=video:release_date]', 0)->getAttribute('content') );
|
||||
$metadata['thumbnailUri'] = $html2->find('meta[property=og:image]', 0)->getAttribute('content');
|
||||
$metadata['uri'] = $html2->find('meta[property=og:url]', 0)->getAttribute('content');
|
||||
|
||||
return $metadata;
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
||||
function getMetadata($id) {
|
||||
$metadata=array();
|
||||
$html2 = $this->getSimpleHTMLDOM('http://www.dailymotion.com/video/'.$id) or $this->returnServerError('Could not request Dailymotion.');
|
||||
$metadata['title'] = $html2->find('meta[property=og:title]', 0)->getAttribute('content');
|
||||
$metadata['timestamp'] = strtotime($html2->find('meta[property=video:release_date]', 0)->getAttribute('content') );
|
||||
$metadata['thumbnailUri'] = $html2->find('meta[property=og:image]', 0)->getAttribute('content');
|
||||
$metadata['uri'] = $html2->find('meta[property=og:url]', 0)->getAttribute('content');
|
||||
|
||||
return $metadata;
|
||||
}
|
||||
|
||||
|
||||
$html = '';
|
||||
$limit = 5;
|
||||
$count = 0;
|
||||
|
@ -81,7 +65,7 @@ class DailymotionBridge extends BridgeAbstract{
|
|||
if($count < $limit) {
|
||||
$item = new \Item();
|
||||
$item->id = str_replace('/video/', '', strtok($element->href, '_'));
|
||||
$metadata = getMetadata($item->id);
|
||||
$metadata = $this->getMetadata($item->id);
|
||||
$item->uri = $metadata['uri'];
|
||||
$item->title = $metadata['title'];
|
||||
$item->timestamp = $metadata['timestamp'];
|
||||
|
|
|
@ -7,20 +7,11 @@ class DanbooruBridge extends BridgeAbstract{
|
|||
$this->name = "Danbooru";
|
||||
$this->uri = "http://donmai.us/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
|
||||
$this->parameters[] = array(
|
||||
'p'=>array('name'=>'page'),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -7,7 +7,6 @@ class DansTonChatBridge extends BridgeAbstract{
|
|||
$this->name = "DansTonChat Bridge";
|
||||
$this->uri = "http://danstonchat.com";
|
||||
$this->description = "Returns latest quotes from DansTonChat.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,78 +7,30 @@ class DauphineLibereBridge extends BridgeAbstract {
|
|||
$this->name = "Dauphine Bridge";
|
||||
$this->uri = "http://www.ledauphine.com/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'u'=>array(
|
||||
'name'=>'Catégorie de l\'article',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'À la une'=>'',
|
||||
'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',
|
||||
'Savoie'=>'savoie',
|
||||
'Haute-Savoie'=>'haute-savoie',
|
||||
'Vaucluse'=>'vaucluse'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private function ExtractContent($url, $context) {
|
||||
|
|
|
@ -7,48 +7,32 @@ class DemoBridge extends BridgeAbstract{
|
|||
$this->name = "DemoBridge";
|
||||
$this->uri = "http://github.com/sebsauvage/rss-bridge";
|
||||
$this->description = "Bridge used for demos";
|
||||
$this->update = "2016-08-09";
|
||||
|
||||
$this->parameters['testCheckbox'] =
|
||||
'[
|
||||
{
|
||||
"type" : "checkbox",
|
||||
"identifier" : "testCheckbox",
|
||||
"name" : "test des checkbox"
|
||||
}
|
||||
$this->parameters['testCheckbox'] = array(
|
||||
'testCheckbox'=>array(
|
||||
'type'=>'checkbox',
|
||||
'name'=>'test des checkbox'
|
||||
)
|
||||
);
|
||||
|
||||
]';
|
||||
|
||||
$this->parameters['testList'] =
|
||||
'[
|
||||
{
|
||||
"type" : "list",
|
||||
"identifier" : "testList",
|
||||
"name" : "test des listes",
|
||||
"values" : [
|
||||
{
|
||||
"name" : "Test",
|
||||
"value" : "test"
|
||||
},
|
||||
{
|
||||
"name" : "Test 2",
|
||||
"value" : "test2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters['testNumber'] =
|
||||
'[
|
||||
{
|
||||
"type" : "number",
|
||||
"identifier" : "testNumber",
|
||||
"name" : "test des numéros",
|
||||
"exampleValue" : "1515632"
|
||||
|
||||
}
|
||||
|
||||
]';
|
||||
$this->parameters['testList'] = array(
|
||||
'testList'=>array(
|
||||
'type'=>'list',
|
||||
'name'=>'test des listes',
|
||||
'values'=>array(
|
||||
'Test'=>'test',
|
||||
'Test 2'=>'test2'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$this->parameters['testNumber'] = array(
|
||||
'testNumber'=>array(
|
||||
'type'=>'number',
|
||||
'name'=>'test des numéros',
|
||||
'exampleValue'=>'1515632'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -6,7 +6,6 @@ class DeveloppezDotComBridge extends BridgeAbstract{
|
|||
$this->name = "Developpez.com Actus (FR)";
|
||||
$this->uri = "http://www.developpez.com/";
|
||||
$this->description = "Returns the 15 newest posts from DeveloppezDotCom (full text).";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function DeveloppezDotComStripCDATA($string) {
|
||||
|
|
|
@ -7,7 +7,6 @@ class DilbertBridge extends BridgeAbstract {
|
|||
$this->name = 'Dilbert Daily Strip';
|
||||
$this->uri = 'http://dilbert.com';
|
||||
$this->description = 'The Unofficial Dilbert Daily Comic Strip';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,21 +7,15 @@ class DollbooruBridge extends BridgeAbstract{
|
|||
$this->name = "Dollbooru";
|
||||
$this->uri = "http://dollbooru.org/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"type" : "number",
|
||||
"identifier" : "p"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -7,20 +7,17 @@ class DuckDuckGoBridge extends BridgeAbstract{
|
|||
$this->name = "DuckDuckGo";
|
||||
$this->uri = "https://duckduckgo.com/";
|
||||
$this->description = "Returns most recent results from DuckDuckGo.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "keyword",
|
||||
"identifier" : "u"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'u'=>array(
|
||||
'name'=>'keyword',
|
||||
'required'=>true)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
$html = '';
|
||||
$link = 'http://duckduckgo.com/html/?q='.$param[u].'+sort:date';
|
||||
$link = 'http://duckduckgo.com/html/?q='.$param['u'].'+sort:date';
|
||||
|
||||
$html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request DuckDuckGo.');
|
||||
|
||||
|
|
|
@ -7,17 +7,14 @@ class EZTVBridge extends BridgeAbstract{
|
|||
$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 = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Show ids",
|
||||
"identifier" : "i",
|
||||
"exampleValue" : "showID1,showID2,..."
|
||||
}
|
||||
]';
|
||||
|
||||
$this->parameters[] = array(
|
||||
'i'=>array(
|
||||
'name'=>'Show ids',
|
||||
'exampleValue'=>'showID1,showID2,…',
|
||||
'required'=>true
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -8,7 +8,6 @@ class EliteDangerousGalnetBridge extends BridgeAbstract
|
|||
$this->name = "Elite: Dangerous Galnet";
|
||||
$this->uri = "https://community.elitedangerous.com/galnet";
|
||||
$this->description = "Returns the latest page of news from Galnet";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
public function collectData(array $param)
|
||||
|
|
|
@ -6,18 +6,15 @@ class ElsevierBridge extends BridgeAbstract{
|
|||
$this->name = 'Elsevier journals recent articles';
|
||||
$this->uri = 'http://www.journals.elsevier.com';
|
||||
$this->description = 'Returns the recent articles published in Elsevier journals';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Journal name",
|
||||
"identifier" : "j",
|
||||
"required" : true,
|
||||
"exampleValue" : "academic-pediatrics",
|
||||
"title" : "Insert html-part of your journal"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'j'=>array(
|
||||
'name'=>'Journal name',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'academic-pediactrics',
|
||||
'title'=>'Insert html-part of your journal'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// Extracts the list of names from an article as string
|
||||
|
|
|
@ -6,7 +6,6 @@ class EstCeQuonMetEnProdBridge extends BridgeAbstract {
|
|||
$this->name = 'Est-ce qu\'on met en prod aujourd\'hui ?';
|
||||
$this->uri = 'https://www.estcequonmetenprodaujourdhui.info/';
|
||||
$this->description = 'Should we put a website in production today? (French)';
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -7,16 +7,13 @@ class FacebookBridge extends BridgeAbstract{
|
|||
$this->name = "Facebook";
|
||||
$this->uri = "http://www.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 = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Username",
|
||||
"identifier" : "u",
|
||||
"required" : true
|
||||
}
|
||||
]';
|
||||
$this->parameters[] =array(
|
||||
'u'=>array(
|
||||
'name'=>'Username',
|
||||
'required'=>true
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -7,7 +7,6 @@ Class FierPandaBridge extends BridgeAbstract{
|
|||
$this->name = "Fier Panda Bridge";
|
||||
$this->uri = "http://www.fier-panda.fr/";
|
||||
$this->description = "Returns latest articles from Fier Panda.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ class FlickrExploreBridge extends BridgeAbstract{
|
|||
$this->name = "Flickr Explore";
|
||||
$this->uri = "https://www.flickr.com/explore";
|
||||
$this->description = "Returns the latest interesting images from Flickr";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,23 +7,14 @@ class FlickrTagBridge extends BridgeAbstract{
|
|||
$this->name = "Flickr TagUser";
|
||||
$this->uri = "http://www.flickr.com/";
|
||||
$this->description = "Returns the tagged or user images from Flickr";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters["By keyword"] =
|
||||
'[
|
||||
{
|
||||
"name" : "Keyword",
|
||||
"identifier" : "q"
|
||||
}
|
||||
]';
|
||||
$this->parameters["By keyword"] = array(
|
||||
'q'=>array('name'=>'keyword')
|
||||
);
|
||||
|
||||
$this->parameters["By username"] =
|
||||
'[
|
||||
{
|
||||
"name" : "Username",
|
||||
"identifier" : "u"
|
||||
}
|
||||
]';
|
||||
$this->parameters["By username"] = array(
|
||||
'u'=>array('name'=>'Username')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -7,7 +7,6 @@ class FootitoBridge extends BridgeAbstract{
|
|||
$this->name = "Footito";
|
||||
$this->uri = "http://www.footito.fr/";
|
||||
$this->description = "Footito";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,15 +7,10 @@ class FourchanBridge extends BridgeAbstract{
|
|||
$this->name = "4chan";
|
||||
$this->uri = "https://www.4chan.org/";
|
||||
$this->description = "Returns posts from the specified thread";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Thread URL",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
't'=>array('name'=>'Thread URL')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -8,21 +8,16 @@ class Freenews extends RssExpander {
|
|||
$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 = "2016-08-09";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Id de la rubrique (sans le \'-\')",
|
||||
"identifier" : "id"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'id'=>array('name'=>'Id de la rubrique (sans le \'-\')')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
parent::collectExpandableDatas($param, FREENEWS_RSS);
|
||||
}
|
||||
|
||||
|
||||
protected function parseRSSItem($newsItem) {
|
||||
$item = new Item();
|
||||
$item->title = trim($newsItem->title);
|
||||
|
|
|
@ -7,106 +7,78 @@ class FuturaSciencesBridge extends BridgeAbstract {
|
|||
$this->name = 'Futura-Sciences Bridge';
|
||||
$this->uri = 'http://www.futura-sciences.com/';
|
||||
$this->description = 'Returns the newest articles.';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Feed",
|
||||
"type" : "list",
|
||||
"identifier" : "feed",
|
||||
"values" :
|
||||
[
|
||||
{ "name" : "---- Select ----", "value" : "" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux multi-magazines", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura-Sciences", "value" : "actualites" },
|
||||
{ "name" : " Les dernières définitions de Futura-Sciences", "value" : "definitions" },
|
||||
{ "name" : " Les dernières photos de Futura-Sciences", "value" : "photos" },
|
||||
{ "name" : " Les dernières questions - réponses de Futura-Sciences", "value" : "questions-reponses" },
|
||||
{ "name" : " Les derniers dossiers de Futura-Sciences", "value" : "dossiers" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux Services", "value" : "" },
|
||||
|
||||
{ "name" : " Les cartes virtuelles de Futura-Sciences", "value" : "services/cartes-virtuelles" },
|
||||
{ "name" : " Les fonds d\'écran de Futura-Sciences", "value" : "services/fonds-ecran" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux Santé", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura-Santé", "value" : "sante/actualites" },
|
||||
{ "name" : " Les dernières définitions de Futura-Santé", "value" : "sante/definitions" },
|
||||
{ "name" : " Les dernières questions-réponses de Futura-Santé", "value" : "sante/questions-reponses" },
|
||||
{ "name" : " Les derniers dossiers de Futura-Santé", "value" : "sante/dossiers" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux High-Tech", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura High-Tech", "value" : "high-tech/actualites" },
|
||||
{ "name" : " Les dernières astuces de Futura High-Tech", "value" : "high-tech/questions-reponses" },
|
||||
{ "name" : " Les dernières définitions de Futura High-Tech", "value" : "high-tech/definitions" },
|
||||
{ "name" : " Les derniers dossiers de Futura High-Tech", "value" : "high-tech/dossiers" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux Espace", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura-Espace", "value" : "espace/actualites" },
|
||||
{ "name" : " Les dernières définitions de Futura-Espace", "value" : "espace/definitions" },
|
||||
{ "name" : " Les dernières questions-réponses de Futura-Espace", "value" : "espace/questions-reponses" },
|
||||
{ "name" : " Les derniers dossiers de Futura-Espace", "value" : "espace/dossiers" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux Environnement", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura-Environnement", "value" : "environnement/actualites" },
|
||||
{ "name" : " Les dernières définitions de Futura-Environnement", "value" : "environnement/definitions" },
|
||||
{ "name" : " Les dernières questions - réponses de Futura-Environnement", "value" : "environnement/questions-reponses" },
|
||||
{ "name" : " Les derniers dossiers de Futura-Environnement", "value" : "environnement/dossiers" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux Maison", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura-Maison", "value" : "maison/actualites" },
|
||||
{ "name" : " Les dernières astuces de Futura-Maison", "value" : "maison/questions-reponses" },
|
||||
{ "name" : " Les dernières définitions de Futura-Maison", "value" : "maison/definitions" },
|
||||
{ "name" : " Les derniers dossiers de Futura-Maison", "value" : "maison/dossiers" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux Nature", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura-Nature", "value" : "nature/actualites" },
|
||||
{ "name" : " Les dernières définitions de Futura-Nature", "value" : "nature/definitions" },
|
||||
{ "name" : " Les dernières questions-réponses de Futura-Nature", "value" : "nature/questions-reponses" },
|
||||
{ "name" : " Les derniers dossiers de Futura-Nature", "value" : "nature/dossiers" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux Terre", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura-Terre", "value" : "terre/actualites" },
|
||||
{ "name" : " Les dernières définitions de Futura-Terre", "value" : "terre/definitions" },
|
||||
{ "name" : " Les dernières questions-réponses de Futura-Terre", "value" : "terre/questions-reponses" },
|
||||
{ "name" : " Les derniers dossiers de Futura-Terre", "value" : "terre/dossiers" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux Matière", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura-Matière", "value" : "matiere/actualites" },
|
||||
{ "name" : " Les dernières définitions de Futura-Matière", "value" : "matiere/definitions" },
|
||||
{ "name" : " Les dernières questions-réponses de Futura-Matière", "value" : "matiere/questions-reponses" },
|
||||
{ "name" : " Les derniers dossiers de Futura-Matière", "value" : "matiere/dossiers" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "Les flux Mathématiques", "value" : "" },
|
||||
|
||||
{ "name" : " Les dernières actualités de Futura-Mathématiques", "value" : "mathematiques/actualites" },
|
||||
{ "name" : " Les derniers dossiers de Futura-Mathématiques", "value" : "mathematiques/dossiers" }
|
||||
]
|
||||
}
|
||||
]';
|
||||
|
||||
$this->parameters[] = array(
|
||||
'feed'=> array(
|
||||
'name'=>'Feed',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'Les flux multi-magazines'=>array(
|
||||
'Les dernières actualités de Futura-Sciences'=>'actualites',
|
||||
'Les dernières définitions de Futura-Sciences'=>'definitions',
|
||||
'Les dernières photos de Futura-Sciences'=>'photos',
|
||||
'Les dernières questions - réponses de Futura-Sciences'=>'questions-reponses',
|
||||
'Les derniers dossiers de Futura-Sciences'=>'dossiers'
|
||||
),
|
||||
'Les flux Services'=> array(
|
||||
'Les cartes virtuelles de Futura-Sciences'=>'services/cartes-virtuelles',
|
||||
'Les fonds d\'écran de Futura-Sciences'=>'services/fonds-ecran'
|
||||
),
|
||||
'Les flux Santé'=>array(
|
||||
'Les dernières actualités de Futura-Santé'=>'sante/actualites',
|
||||
'Les dernières définitions de Futura-Santé'=>'sante/definitions',
|
||||
'Les dernières questions-réponses de Futura-Santé'=>'sante/question-reponses',
|
||||
'Les derniers dossiers de Futura-Santé'=>'sante/dossiers'
|
||||
),
|
||||
'Les flux High-Tech'=>array(
|
||||
'Les dernières actualités de Futura-High-Tech'=>'high-tech/actualites',
|
||||
'Les dernières astuces de Futura-High-Tech'=>'high-tech/question-reponses',
|
||||
'Les dernières définitions de Futura-High-Tech'=>'high-tech/definitions',
|
||||
'Les derniers dossiers de Futura-High-Tech'=>'high-tech/dossiers'
|
||||
),
|
||||
'Les flux Espace'=>array(
|
||||
'Les dernières actualités de Futura-Espace'=>'espace/actualites',
|
||||
'Les dernières définitions de Futura-Espace'=>'espace/definitions',
|
||||
'Les dernières questions-réponses de Futura-Espace'=>'espace/question-reponses',
|
||||
'Les derniers dossiers de Futura-Espace'=>'espace/dossiers'
|
||||
),
|
||||
'Les flux Environnement'=>array(
|
||||
'Les dernières actualités de Futura-Environnement'=>'environnement/actualites',
|
||||
'Les dernières définitions de Futura-Environnement'=>'environnement/definitions',
|
||||
'Les dernières questions-réponses de Futura-Environnement'=>'environnement/question-reponses',
|
||||
'Les derniers dossiers de Futura-Environnement'=>'environnement/dossiers'
|
||||
),
|
||||
'Les flux Maison'=>array(
|
||||
'Les dernières actualités de Futura-Maison'=>'maison/actualites',
|
||||
'Les dernières astuces de Futura-Maison'=>'maison/question-reponses',
|
||||
'Les dernières définitions de Futura-Maison'=>'maison/definitions',
|
||||
'Les derniers dossiers de Futura-Maison'=>'maison/dossiers'
|
||||
),
|
||||
'Les flux Nature'=>array(
|
||||
'Les dernières actualités de Futura-Nature'=>'nature/actualites',
|
||||
'Les dernières définitions de Futura-Nature'=>'nature/definitions',
|
||||
'Les dernières questions-réponses de Futura-Nature'=>'nature/question-reponses',
|
||||
'Les derniers dossiers de Futura-Nature'=>'nature/dossiers'
|
||||
),
|
||||
'Les flux Terre'=>array(
|
||||
'Les dernières actualités de Futura-Terre'=>'terre/actualites',
|
||||
'Les dernières définitions de Futura-Terre'=>'terre/definitions',
|
||||
'Les dernières questions-réponses de Futura-Terre'=>'terre/question-reponses',
|
||||
'Les derniers dossiers de Futura-Terre'=>'terre/dossiers'
|
||||
),
|
||||
'Les flux Matière'=>array(
|
||||
'Les dernières actualités de Futura-Matière'=>'matiere/actualites',
|
||||
'Les dernières définitions de Futura-Matière'=>'matiere/definitions',
|
||||
'Les dernières questions-réponses de Futura-Matière'=>'matiere/question-reponses',
|
||||
'Les derniers dossiers de Futura-Matière'=>'matiere/dossiers'
|
||||
),
|
||||
'Les flux Mathématiques'=>array(
|
||||
'Les dernières actualités de Futura-Mathématiques'=>'mathematiques/actualites',
|
||||
'Les derniers dossiers de Futura-Mathématiques'=>'mathematiques/dossiers'
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
@ -166,12 +138,12 @@ class FuturaSciencesBridge extends BridgeAbstract {
|
|||
return '';
|
||||
}
|
||||
|
||||
$url = $this->getURI().'rss/'.$param['feed'].'.xml';
|
||||
if (empty($param['feed']))
|
||||
$this->returnClientError('Please select a feed to display.'.$url);
|
||||
if ($param['feed'] !== preg_replace('/[^a-zA-Z-\/]+/', '', $param['feed']) || substr_count($param['feed'], '/') > 1 || strlen($param['feed'] > 64))
|
||||
$this->returnClientError('Invalid "feed" parameter.'.$url);
|
||||
|
||||
$url = $this->getURI().'rss/'.$param['feed'].'.xml';
|
||||
$html = $this->getSimpleHTMLDOM($url) or $this->returnServerError('Could not request Futura-Sciences: '.$url);
|
||||
$limit = 0;
|
||||
|
||||
|
|
|
@ -9,35 +9,19 @@ class GBAtempBridge extends BridgeAbstract {
|
|||
$this->name = 'GBAtemp';
|
||||
$this->uri = 'http://gbatemp.net/';
|
||||
$this->description = 'GBAtemp is a user friendly underground video game community.';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Type",
|
||||
"type" : "list",
|
||||
"identifier" : "type",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "News",
|
||||
"value" : "N"
|
||||
},
|
||||
{
|
||||
"name" : "Reviews",
|
||||
"value" : "R"
|
||||
},
|
||||
{
|
||||
"name" : "Tutorials",
|
||||
"value" : "T"
|
||||
},
|
||||
{
|
||||
"name" : "Forum",
|
||||
"value" : "F"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'type'=>array(
|
||||
'name'=>'Type',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'News'=>'N',
|
||||
'Reviews'=>'R',
|
||||
'Tutorials'=>'T',
|
||||
'Forum'=>'F'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private function ExtractFromDelimiters($string, $start, $end) {
|
||||
|
|
|
@ -10,15 +10,10 @@ class Gawker extends RssExpander{
|
|||
$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 = "2016-08-09";
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "site id to put in uri between feeds.gawker.com and /full .. which is obviously not full AT ALL",
|
||||
"identifier" : "site"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'site'=>array('name'=>'site id to put in uri between feeds.gawker.com and /full .. which is obviously not full AT ALL')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
@ -36,7 +31,7 @@ class Gawker extends RssExpander{
|
|||
// $this->message("loading feed from ".$this->getURI());
|
||||
parent::collectExpandableDatas($param, $url);
|
||||
}
|
||||
|
||||
|
||||
protected function parseRSSItem($newsItem) {
|
||||
$item = new Item();
|
||||
$item->uri = trim($newsItem->link);
|
||||
|
|
|
@ -7,20 +7,14 @@ class GelbooruBridge extends BridgeAbstract{
|
|||
$this->name = "Gelbooru";
|
||||
$this->uri = "http://gelbooru.com/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -9,24 +9,17 @@ class GiphyBridge extends BridgeAbstract{
|
|||
$this->name = "Giphy Bridge";
|
||||
$this->uri = "http://giphy.com/";
|
||||
$this->description = "Bridge for giphy.com";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters["By tag"] =
|
||||
'[
|
||||
{
|
||||
"name" : "search tag",
|
||||
"identifier" : "s"
|
||||
}
|
||||
]';
|
||||
$this->parameters["By tag"] = array(
|
||||
's'=>array('name'=>'search tag')
|
||||
);
|
||||
|
||||
$this->parameters["Without tag"] =
|
||||
'[
|
||||
{
|
||||
"name" : "max number of returned items",
|
||||
"type" : "number",
|
||||
"identifier" : "n"
|
||||
}
|
||||
]';
|
||||
$this->parameters["Without tag"] = array(
|
||||
'n'=>array(
|
||||
'name'=>'max number of returned items',
|
||||
'type'=>'number'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -12,24 +12,22 @@ class GithubIssueBridge extends BridgeAbstract{
|
|||
$this->name = 'Github Issue';
|
||||
$this->uri = '';
|
||||
$this->description = 'Returns the comments of a github project issue';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[]=
|
||||
'[
|
||||
{
|
||||
"name" : "User name",
|
||||
"identifier" : "u"
|
||||
},
|
||||
{
|
||||
"name" : "Project name",
|
||||
"identifier" : "p"
|
||||
},
|
||||
{
|
||||
"name" : "Issue number",
|
||||
"identifier" : "i"
|
||||
}
|
||||
|
||||
]';
|
||||
$this->parameters[]=array (
|
||||
'u'=>array(
|
||||
'name'=>'User name',
|
||||
'required'=>true
|
||||
),
|
||||
'p'=>array(
|
||||
'name'=>'Project name',
|
||||
'required'=>true
|
||||
),
|
||||
'i'=>array(
|
||||
'name'=>'Issue number',
|
||||
'type'=>'number',
|
||||
'required'=>true
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -12,28 +12,25 @@ class GitlabCommitsBridge extends BridgeAbstract{
|
|||
$this->name = 'Gitlab Commits';
|
||||
$this->uri = '';
|
||||
$this->description = 'Returns the commits of a project hosted on a gitlab instance';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Base URI",
|
||||
"identifier" : "uri"
|
||||
},
|
||||
{
|
||||
"name" : "User name",
|
||||
"identifier" : "u"
|
||||
},
|
||||
{
|
||||
"name" : "Project name",
|
||||
"identifier" : "p"
|
||||
},
|
||||
{
|
||||
"name" : "Project branch",
|
||||
"identifier" : "b"
|
||||
}
|
||||
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'uri'=>array(
|
||||
'name'=>'Base URI',
|
||||
'defaultValue'=>'https://gitlab.com'
|
||||
),
|
||||
'u'=>array(
|
||||
'name'=>'User name',
|
||||
'required'=>true
|
||||
),
|
||||
'p'=>array(
|
||||
'name'=>'Project name',
|
||||
'required'=>true
|
||||
),
|
||||
'b'=>array(
|
||||
'name'=>'Project branch',
|
||||
'defaultValue'=>'master'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -7,7 +7,6 @@ class GizmodoFRBridge extends BridgeAbstract{
|
|||
$this->name = "GizmodoFR";
|
||||
$this->uri = "http://www.gizmodo.fr/";
|
||||
$this->description = "Returns the 15 newest posts from GizmodoFR (full text).";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -10,15 +10,10 @@ class GooglePlusPostBridge extends BridgeAbstract
|
|||
$this->name = "Google Plus Post Bridge";
|
||||
$this->uri = "http://plus.google.com/";
|
||||
$this->description = "Returns user public post (without API).";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "username or Id",
|
||||
"identifier" : "username"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'username'=>array('name'=>'username or Id')
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -17,15 +17,10 @@ class GoogleSearchBridge extends BridgeAbstract{
|
|||
$this->name = "Google search";
|
||||
$this->uri = "https://www.google.com/";
|
||||
$this->description = "Returns most recent results from Google search.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "keyword",
|
||||
"identifier" : "q"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'q'=>array('name'=>"keyword")
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ class GuruMedBridge extends BridgeAbstract{
|
|||
$this->name = "GuruMed";
|
||||
$this->uri = "http://www.gurumed.org";
|
||||
$this->description = "Returns the 5 newest posts from Gurumed (full text)";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function GurumedStripCDATA($string) {
|
||||
|
|
|
@ -10,24 +10,15 @@ class HDWallpapersBridge extends BridgeAbstract {
|
|||
$this->name = "HD Wallpapers Bridge";
|
||||
$this->uri = "http://www.hdwallpapers.in/";
|
||||
$this->description = "Returns the latests wallpapers from HDWallpapers";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "category",
|
||||
"identifier" : "c"
|
||||
},
|
||||
{
|
||||
"name" : "max number of wallpapers",
|
||||
"identifier" : "m"
|
||||
},
|
||||
{
|
||||
"name" : "resolution",
|
||||
"identifier" : "r",
|
||||
"exampleValue" : "1920x1200, 1680x1050, ..."
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'c'=>array('name'=>'category'),
|
||||
'm'=>array('name'=>'max number of wallpapers'),
|
||||
'r'=>array(
|
||||
'name'=>'resolution',
|
||||
'exampleValue'=>'1920x1200, 1680x1050,…'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -7,7 +7,6 @@ class HentaiHavenBridge extends BridgeAbstract{
|
|||
$this->name = "Hentai Haven";
|
||||
$this->uri = "http://hentaihaven.org/";
|
||||
$this->description = "Returns releases from Hentai Haven";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -9,15 +9,10 @@ class IdenticaBridge extends BridgeAbstract{
|
|||
$this->name = "Identica Bridge";
|
||||
$this->uri = "https://identi.ca/";
|
||||
$this->description = "Returns user timelines";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "username",
|
||||
"identifier" : "u"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'u'=>array('name'=>'username')
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -9,15 +9,10 @@ class InstagramBridge extends BridgeAbstract{
|
|||
$this->name = "Instagram Bridge";
|
||||
$this->uri = "http://instagram.com/";
|
||||
$this->description = "Returns the newest images";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "username",
|
||||
"identifier" : "u"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'u'=>array('name'=>'username')
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -5,171 +5,88 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
$this->name = 'isoHunt Bridge'; // Is replaced later!
|
||||
$this->uri = 'https://isohunt.to'; // Is replaced later!
|
||||
$this->description = 'Returns the latest results by category or search result';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
/*
|
||||
* Get feeds for one of the "latest" categories
|
||||
* Notice: The categories "News" and "Top Searches" are received from the main page
|
||||
* Elements are sorted by name ascending!
|
||||
*/
|
||||
$this->parameters['By "Latest" category'] =
|
||||
'[
|
||||
{
|
||||
"name" : "Latest category",
|
||||
"identifier" : "latest_category",
|
||||
"type" : "list",
|
||||
"required" : true,
|
||||
"title" : "Select your category",
|
||||
"defaultValue" : "News",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "Hot Torrents",
|
||||
"value" : "hot_torrents"
|
||||
},
|
||||
{
|
||||
"name" : "News",
|
||||
"value" : "news"
|
||||
},
|
||||
{
|
||||
"name" : "Releases",
|
||||
"value" : "releases"
|
||||
},
|
||||
{
|
||||
"name" : "Torrents",
|
||||
"value" : "torrents"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters['By "Latest" category'] = array(
|
||||
'latest_category'=>array(
|
||||
'name'=>'Latest category',
|
||||
'type'=>'list',
|
||||
'required'=>true,
|
||||
'title'=>'Select your category',
|
||||
'defaultValue'=>'News',
|
||||
'values'=>array(
|
||||
'Hot Torrents'=>'hot_torrents',
|
||||
'News'=>'news',
|
||||
'Releases'=>'releases',
|
||||
'Torrents'=>'torrents'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
/*
|
||||
* Get feeds for one of the "torrent" categories
|
||||
* Make sure to add new categories also to get_torrent_category_index($)!
|
||||
* Elements are sorted by name ascending!
|
||||
*/
|
||||
$this->parameters['By "Torrent" category'] =
|
||||
'[
|
||||
{
|
||||
"name" : "Torrent category",
|
||||
"identifier" : "torrent_category",
|
||||
"type" : "list",
|
||||
"required" : true,
|
||||
"title" : "Select your category",
|
||||
"defaultValue" : "Anime",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "Adult",
|
||||
"value" : "adult"
|
||||
},
|
||||
{
|
||||
"name" : "Anime",
|
||||
"value" : "anime"
|
||||
},
|
||||
{
|
||||
"name" : "Books",
|
||||
"value" : "books"
|
||||
},
|
||||
{
|
||||
"name" : "Games",
|
||||
"value" : "games"
|
||||
},
|
||||
{
|
||||
"name" : "Movies",
|
||||
"value" : "movies"
|
||||
},
|
||||
{
|
||||
"name" : "Music",
|
||||
"value" : "music"
|
||||
},
|
||||
{
|
||||
"name" : "Other",
|
||||
"value" : "other"
|
||||
},
|
||||
{
|
||||
"name" : "Series & TV",
|
||||
"value" : "series_tv"
|
||||
},
|
||||
{
|
||||
"name" : "Software",
|
||||
"value" : "software"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "Sort by popularity",
|
||||
"identifier" : "torrent_popularity",
|
||||
"type" : "checkbox",
|
||||
"title" : "Activate to receive results by popularity"
|
||||
}
|
||||
]';
|
||||
$this->parameters['By "Torrent" category'] = array(
|
||||
'torrent_category'=>array(
|
||||
'name'=>'Torrent category',
|
||||
'type'=>'list',
|
||||
'required'=>true,
|
||||
'title'=>'Select your category',
|
||||
'defaultValue'=>'Anime',
|
||||
'values'=>array(
|
||||
'Adult'=>'adult',
|
||||
'Anime'=>'anime',
|
||||
'Books'=>'books',
|
||||
'Games'=>'games',
|
||||
'Movies'=>'movies',
|
||||
'Music'=>'music',
|
||||
'Other'=>'other',
|
||||
'Series & TV'=>'series_tv',
|
||||
'Software'=>'software'
|
||||
)
|
||||
),
|
||||
'torrent_popularity'=>array(
|
||||
'name'=>'Sort by popularity',
|
||||
'type'=>'checkbox',
|
||||
'title'=>'Activate to receive results by popularity'
|
||||
)
|
||||
);
|
||||
|
||||
/*
|
||||
* Get feeds for a specific search request
|
||||
*/
|
||||
$this->parameters['Search torrent by name'] =
|
||||
'[
|
||||
{
|
||||
"name" : "Name",
|
||||
"identifier" : "search_name",
|
||||
"type" : "text",
|
||||
"required" : true,
|
||||
"title" : "Insert your search query",
|
||||
"exampleValue" : "Bridge"
|
||||
},
|
||||
{
|
||||
"name" : "Category",
|
||||
"identifier" : "search_category",
|
||||
"type" : "list",
|
||||
"required" : false,
|
||||
"title" : "Select your category",
|
||||
"defaultValue" : "All",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "Adult",
|
||||
"value" : "adult"
|
||||
},
|
||||
{
|
||||
"name" : "All",
|
||||
"value" : "all"
|
||||
},
|
||||
{
|
||||
"name" : "Anime",
|
||||
"value" : "anime"
|
||||
},
|
||||
{
|
||||
"name" : "Books",
|
||||
"value" : "books"
|
||||
},
|
||||
{
|
||||
"name" : "Games",
|
||||
"value" : "games"
|
||||
},
|
||||
{
|
||||
"name" : "Movies",
|
||||
"value" : "movies"
|
||||
},
|
||||
{
|
||||
"name" : "Music",
|
||||
"value" : "music"
|
||||
},
|
||||
{
|
||||
"name" : "Other",
|
||||
"value" : "other"
|
||||
},
|
||||
{
|
||||
"name" : "Series & TV",
|
||||
"value" : "series_tv"
|
||||
},
|
||||
{
|
||||
"name" : "Software",
|
||||
"value" : "software"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters['Search torrent by name'] = array(
|
||||
'search_name'=>array(
|
||||
'name'=>'Name',
|
||||
'required'=>true,
|
||||
'title'=>'Insert your search query',
|
||||
'exampleValue'=>'Bridge'
|
||||
),
|
||||
'search_category'=>array(
|
||||
'name'=>'Category',
|
||||
'type'=>'list',
|
||||
'title'=>'Select your category',
|
||||
'defaultValue'=>'All',
|
||||
'values'=>array(
|
||||
'Adult'=>'adult',
|
||||
'All'=>'all',
|
||||
'Anime'=>'anime',
|
||||
'Books'=>'books',
|
||||
'Games'=>'games',
|
||||
'Movies'=>'movies',
|
||||
'Music'=>'music',
|
||||
'Other'=>'other',
|
||||
'Series & TV'=>'series_tv',
|
||||
'Software'=>'software'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $params){
|
||||
|
@ -216,13 +133,13 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
}
|
||||
|
||||
private function get_torrent_category_name($category){
|
||||
$parameter = json_decode($this->parameters['By "Torrent" category'], true);
|
||||
$languages = $parameter[0]['values'];
|
||||
$parameter = $this->parameters['By "Torrent" category'];
|
||||
$languages = $parameter['torrent_category']['values'];
|
||||
|
||||
foreach($languages as $name=>$value)
|
||||
if(strtolower(trim($value)) === strtolower(trim($category)))
|
||||
return $name;
|
||||
|
||||
foreach($languages as $language)
|
||||
if(strtolower(trim($language['value'])) === strtolower(trim($category)))
|
||||
return $language['name'];
|
||||
|
||||
return 'Unknown category';
|
||||
}
|
||||
|
||||
|
@ -245,19 +162,19 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
|
||||
private function request_latest_category($category){
|
||||
switch($category){
|
||||
case 'hot_torrents':
|
||||
case 'hot_torrents':
|
||||
$this->name = 'Latest hot torrents - ' . $this->name;
|
||||
$this->uri .= '/statistic/hot/torrents';
|
||||
break;
|
||||
case 'news':
|
||||
case 'news':
|
||||
$this->name = 'Latest news - ' . $this->name;
|
||||
$this->uri .= '/';
|
||||
break;
|
||||
case 'releases':
|
||||
case 'releases':
|
||||
$this->name = 'Latest releases - ' . $this->name;
|
||||
$this->uri .= '/releases.php';
|
||||
break;
|
||||
case 'torrents':
|
||||
case 'torrents':
|
||||
$this->name = 'Latest torrents - ' . $this->name;
|
||||
$this->uri .= '/latest.php';
|
||||
break;
|
||||
|
@ -289,13 +206,13 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
}
|
||||
|
||||
private function get_search_category_name($category){
|
||||
$parameter = json_decode($this->parameters['Search torrent by name'], true);
|
||||
$languages = $parameter[1]['values'];
|
||||
$parameter = $this->parameters['Search torrent by name'];
|
||||
$languages = $parameter['search_category']['values'];
|
||||
|
||||
foreach($languages as $name=>$value)
|
||||
if(strtolower(trim($value)) === strtolower(trim($category)))
|
||||
return $name;
|
||||
|
||||
foreach($languages as $language)
|
||||
if(strtolower(trim($language['value'])) === strtolower(trim($category)))
|
||||
return $language['name'];
|
||||
|
||||
return 'Unknown category';
|
||||
}
|
||||
|
||||
|
@ -333,7 +250,7 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
|
||||
$item->uri = $this->fix_relative_uri($anchor->href);
|
||||
$item->title = $anchor->title;
|
||||
// $item->author =
|
||||
// $item->author =
|
||||
$item->timestamp = strtotime($date->plaintext);
|
||||
$item->content = $this->fix_relative_uri($torrent->innertext);
|
||||
|
||||
|
@ -371,9 +288,9 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
|
||||
$item->uri = $element->href;
|
||||
$item->title = $element->plaintext;
|
||||
// $item->author =
|
||||
// $item->timestamp =
|
||||
// $item->content =
|
||||
// $item->author =
|
||||
// $item->timestamp =
|
||||
// $item->content =
|
||||
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
@ -454,7 +371,7 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
$content = $post->find('div', 0);
|
||||
if(!$content)
|
||||
$this->returnServerError('Unable to find content!');
|
||||
|
||||
|
||||
// Remove <h2>...</h2> (title)
|
||||
foreach($content->find('h2') as $element){
|
||||
$element->outertext = '';
|
||||
|
@ -498,7 +415,7 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
$cell = $torrent->find('td.title-row', 0);
|
||||
if(!$cell)
|
||||
$this->returnServerError('Unable to find title cell!');
|
||||
|
||||
|
||||
$title = $cell->find('span', 0);
|
||||
if(!$title)
|
||||
$this->returnServerError('Unable to find title!');
|
||||
|
@ -510,7 +427,7 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
$cell = $torrent->find('td.title-row', 0);
|
||||
if(!$cell)
|
||||
$this->returnServerError('Unable to find title cell!');
|
||||
|
||||
|
||||
$uri = $cell->find('a', 0);
|
||||
if(!$uri)
|
||||
$this->returnServerError('Unable to find uri!');
|
||||
|
@ -522,7 +439,7 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
$cell = $torrent->find('td.user-row', 0);
|
||||
if(!$cell)
|
||||
return; // No author
|
||||
|
||||
|
||||
$user = $cell->find('a', 0);
|
||||
if(!$user)
|
||||
$this->returnServerError('Unable to find user!');
|
||||
|
@ -546,7 +463,7 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
$html = $this->getSimpleHTMLDOM($uri);
|
||||
if(!$html)
|
||||
$this->returnServerError('Unable to load ' . $uri . '!');
|
||||
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,26 +6,16 @@ class JapanExpoBridge extends BridgeAbstract{
|
|||
$this->name = 'Japan Expo Actualités';
|
||||
$this->uri = 'http://www.japan-expo-paris.com/fr/actualites';
|
||||
$this->description = 'Returns most recent entries from Japan Expo actualités.';
|
||||
$this->update = '2016-08-17';
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Mode",
|
||||
"type" : "list",
|
||||
"identifier" : "mode",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "Titles only",
|
||||
"value" : "light"
|
||||
},
|
||||
{
|
||||
"name" : "Full Contents",
|
||||
"value" : "full"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'mode'=>array(
|
||||
'name'=>'Mode',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'Titles only'=>'light',
|
||||
'Full Contents'=>'full'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -7,20 +7,14 @@ class KonachanBridge extends BridgeAbstract{
|
|||
$this->name = "Konachan";
|
||||
$this->uri = "http://konachan.com/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -6,7 +6,6 @@ class KoreusBridge extends BridgeAbstract{
|
|||
$this->name = "Koreus";
|
||||
$this->uri = "http://www.koreus.com/";
|
||||
$this->description = "Returns the 5 newest posts from Koreus (full text)";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function KoreusStripCDATA($string) {
|
||||
|
@ -16,7 +15,7 @@ class KoreusBridge extends BridgeAbstract{
|
|||
}
|
||||
|
||||
private function KoreusExtractContent($url) {
|
||||
$html2 = $this->getSimpeHTMLDOM($url);
|
||||
$html2 = $this->getSimpleHTMLDOM($url);
|
||||
$text = $html2->find('p[class=itemText]', 0)->innertext;
|
||||
$text = utf8_encode(preg_replace('/(Sur le m.+?)+$/i','',$text));
|
||||
return $text;
|
||||
|
|
|
@ -5,58 +5,38 @@ class KununuBridge extends BridgeAbstract{
|
|||
$this->name = "Kununu Bridge"; /* This will be replaced later! */
|
||||
$this->uri = "https://www.kununu.com"; /* This will be replaced later! */
|
||||
$this->description = "Returns the latest reviews for a company and site of your choice.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters['global'] =
|
||||
'[
|
||||
{
|
||||
"name" : "Site",
|
||||
"identifier" : "site",
|
||||
"type" : "list",
|
||||
"required" : true,
|
||||
"exampleValue" : "United States",
|
||||
"title" : "Select your site",
|
||||
"values" :
|
||||
[
|
||||
{
|
||||
"name" : "Austria",
|
||||
"value" : "at"
|
||||
},
|
||||
{
|
||||
"name" : "Germany",
|
||||
"value" : "de"
|
||||
},
|
||||
{
|
||||
"name" : "Switzerland",
|
||||
"value" : "ch"
|
||||
},
|
||||
{
|
||||
"name" : "United States",
|
||||
"value" : "us"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "Load full article",
|
||||
"identifier" : "full",
|
||||
"type" : "checkbox",
|
||||
"required" : false,
|
||||
"exampleValue" : "checked",
|
||||
"title" : "Activate to load full article"
|
||||
}
|
||||
]';
|
||||
$this->parameters['global'] = array(
|
||||
'site'=>array(
|
||||
'name'=>'Site',
|
||||
'type'=>'list',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'United States',
|
||||
'title'=>'Select your site',
|
||||
'values'=>array(
|
||||
'Austria'=>'at',
|
||||
'Germany'=>'de',
|
||||
'Switzerland'=>'ch',
|
||||
'United States'=>'us'
|
||||
)
|
||||
),
|
||||
'full'=>array(
|
||||
'name'=>'Load full article',
|
||||
'type'=>'checkbox',
|
||||
'required'=>false,
|
||||
'exampleValue'=>'checked',
|
||||
'title'=>'Activate to load full article'
|
||||
)
|
||||
);
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Company",
|
||||
"identifier" : "company",
|
||||
"type" : "text",
|
||||
"required" : true,
|
||||
"exampleValue" : "kununu-us",
|
||||
"title" : "Insert company name (i.e. Kununu US) or URI path (i.e. kununu-us)"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'company'=>array(
|
||||
'name'=>'Company',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'kununu-us',
|
||||
'title'=>'Insert company name (i.e. Kununu US) or URI path (i.e. kununu-us)'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $params){
|
||||
|
@ -94,7 +74,7 @@ class KununuBridge extends BridgeAbstract{
|
|||
$this->uri .= "/{$site}/{$company}/{$section}";
|
||||
|
||||
// Load page
|
||||
$html = $this->getSimplHTMLDOM($this->uri);
|
||||
$html = $this->getSimpleHTMLDOM($this->uri);
|
||||
if($html === false)
|
||||
$this->returnServerError('Unable to receive data from ' . $this->uri . '!');
|
||||
|
||||
|
@ -133,17 +113,17 @@ class KununuBridge extends BridgeAbstract{
|
|||
return 86400; // 1 day
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Returns true if the given site is part of the parameters list
|
||||
*/
|
||||
private function site_is_valid($site){
|
||||
$parameter = json_decode($this->parameters['global'], true);
|
||||
$sites = $parameter[0]['values'];
|
||||
$parameter = $this->parameters['global'];
|
||||
$sites = $parameter['site']['values'];
|
||||
|
||||
$site_names = array();
|
||||
|
||||
foreach($sites as $site_item)
|
||||
$site_names[] = $site_item['value'];
|
||||
foreach($sites as $name=>$value)
|
||||
$site_names[] = $value;
|
||||
|
||||
return in_array($site, $site_names);
|
||||
}
|
||||
|
@ -172,11 +152,11 @@ class KununuBridge extends BridgeAbstract{
|
|||
$panel = $html->find('div.panel', 0);
|
||||
if($panel === false)
|
||||
$this->returnServerError('Cannot find panel for company name!');
|
||||
|
||||
|
||||
$company_name = $panel->find('h1', 0);
|
||||
if($company_name === false)
|
||||
$this->returnServerError('Cannot find company name!');
|
||||
|
||||
|
||||
return $company_name->plaintext;
|
||||
}
|
||||
|
||||
|
@ -188,7 +168,7 @@ class KununuBridge extends BridgeAbstract{
|
|||
$date = $article->find('time[itemprop=dtreviewed]', 0);
|
||||
if($date === false)
|
||||
$this->returnServerError('Cannot find article date!');
|
||||
|
||||
|
||||
return strtotime($date->datetime);
|
||||
}
|
||||
|
||||
|
@ -199,7 +179,7 @@ class KununuBridge extends BridgeAbstract{
|
|||
$rating = $article->find('span.rating', 0);
|
||||
if($rating === false)
|
||||
$this->returnServerError('Cannot find article rating!');
|
||||
|
||||
|
||||
return $rating->getAttribute('aria-label');
|
||||
}
|
||||
|
||||
|
@ -210,7 +190,7 @@ class KununuBridge extends BridgeAbstract{
|
|||
$summary = $article->find('[itemprop=summary]', 0);
|
||||
if($summary === false)
|
||||
$this->returnServerError('Cannot find article summary!');
|
||||
|
||||
|
||||
return strip_tags($summary->innertext);
|
||||
}
|
||||
|
||||
|
@ -226,7 +206,7 @@ class KununuBridge extends BridgeAbstract{
|
|||
$anchor = $summary->find('a', 0);
|
||||
if($anchor === false)
|
||||
$this->returnServerError('Cannot find article URI!');
|
||||
|
||||
|
||||
return 'https://www.kununu.com' . $anchor->href;
|
||||
}
|
||||
|
||||
|
@ -247,7 +227,7 @@ class KununuBridge extends BridgeAbstract{
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $author_position;
|
||||
}
|
||||
|
||||
|
@ -258,7 +238,7 @@ class KununuBridge extends BridgeAbstract{
|
|||
$description = $article->find('div[itemprop=description]', 0);
|
||||
if($description === false)
|
||||
$this->returnServerError('Cannot find article description!');
|
||||
|
||||
|
||||
return $this->fix_url($description->innertext);
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ class LWNprevBridge extends BridgeAbstract{
|
|||
$this->name = 'LWN Free Weekly Edition';
|
||||
$this->uri = 'https://lwn.net/free/bigpage';
|
||||
$this->description = 'LWN Free Weekly Edition available one week late';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,225 +7,133 @@ class LeBonCoinBridge extends BridgeAbstract{
|
|||
$this->name = "LeBonCoin";
|
||||
$this->uri = "http://www.leboncoin.fr";
|
||||
$this->description = "Returns most recent results from LeBonCoin for a region, and optionally a category and a keyword .";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
|
||||
{
|
||||
"name" : "Mot Clé",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "Catégorie",
|
||||
"identifier" : "c",
|
||||
"type" : "list",
|
||||
"values" : [
|
||||
{ "name" : "---- Select ----", "value" : "" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "EMPLOI", "value" : "_emploi_" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "VEHICULES", "value" : "_vehicules_" },
|
||||
{ "name" : " Voitures", "value" : "voitures" },
|
||||
{ "name" : " Motos", "value" : "motos" },
|
||||
{ "name" : " Caravaning", "value" : "caravaning" },
|
||||
{ "name" : " Utilitaires", "value" : "utilitaires" },
|
||||
{ "name" : " Equipement Auto", "value" : "equipement_auto" },
|
||||
{ "name" : " Equipement Moto", "value" : "equipement_moto" },
|
||||
{ "name" : " Equipement Caravaning", "value" : "equipement_caravaning" },
|
||||
{ "name" : " Nautisme", "value" : "nautisme" },
|
||||
{ "name" : " Equipement Nautisme", "value" : "equipement_nautisme" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "IMMOBILIER", "value" : "_immobilier_" },
|
||||
{ "name" : " Ventes immobilieres", "value" : "ventes_immobilieres" },
|
||||
{ "name" : " Locations", "value" : "locations" },
|
||||
{ "name" : " Colocations", "value" : "colocations" },
|
||||
{ "name" : " Bureaux & Commerces", "value" : "bureaux_commerces" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "VACANCES", "value" : "_vacances_" },
|
||||
{ "name" : " Locations gites", "value" : "locations_gites" },
|
||||
{ "name" : " Chambres d\'hôtes", "value" : "chambres_d_hotes" },
|
||||
{ "name" : " Campings", "value" : "campings" },
|
||||
{ "name" : " Hôtels", "value" : "hotels" },
|
||||
{ "name" : " Hébergements insolites", "value" : "hebergements_insolites" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "MULTIMEDIA", "value" : "_multimedia_" },
|
||||
{ "name" : " Informatique", "value" : "informatique" },
|
||||
{ "name" : " Consoles & Jeux vidéo", "value" : "consoles_jeux_video" },
|
||||
{ "name" : " Image & Son", "value" : "image_son" },
|
||||
{ "name" : " Téléphonie", "value" : "telephonie" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "LOISIRS", "value" : "_loisirs_" },
|
||||
{ "name" : " DVD / Films", "value" : "dvd_films" },
|
||||
{ "name" : " CD / Musique", "value" : "cd_musique" },
|
||||
{ "name" : " Livres", "value" : "livres" },
|
||||
{ "name" : " Animaux", "value" : "animaux" },
|
||||
{ "name" : " Vélos", "value" : "velos" },
|
||||
{ "name" : " Sports & Hobbies", "value" : "sports_hobbies" },
|
||||
{ "name" : " Instruments de musique", "value" : "instruments_de_musique" },
|
||||
{ "name" : " Collection", "value" : "collection" },
|
||||
{ "name" : " Jeux & Jouets", "value" : "jeux_jouets" },
|
||||
{ "name" : " Vins & Gastronomie", "value" : "vins_gastronomie" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "MATERIEL PROFESSIONNEL", "value" : "_materiel_professionnel_" },
|
||||
{ "name" : " Materiel Agricole", "value" : "materiel_agricole" },
|
||||
{ "name" : " Transport - Manutention", "value" : "transport_manutention" },
|
||||
{ "name" : " BTP - Chantier - Gros-oeuvre", "value" : "btp_chantier_gros_oeuvre" },
|
||||
{ "name" : " Outillage - Materiaux 2nd-oeuvre", "value" : "outillage_materiaux_2nd_oeuvre" },
|
||||
{ "name" : " Equipements Industriels", "value" : "equipements_industriels" },
|
||||
{ "name" : " Restauration - Hôtellerie", "value" : "restauration_hotellerie" },
|
||||
{ "name" : " Fournitures de Bureau", "value" : "fournitures_de_bureau" },
|
||||
{ "name" : " Commerces & Marchés", "value" : "commerces_marches" },
|
||||
{ "name" : " Matériel médical", "value" : "materiel_medical" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "SERVICES", "value" : "_services_" },
|
||||
{ "name" : " Prestations de services", "value" : "prestations_de_services" },
|
||||
{ "name" : " Billetterie", "value" : "billetterie" },
|
||||
{ "name" : " Evénements", "value" : "evenements" },
|
||||
{ "name" : " Cours particuliers", "value" : "cours_particuliers" },
|
||||
{ "name" : " Covoiturage", "value" : "covoiturage" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "MAISON", "value" : "_maison_" },
|
||||
{ "name" : " Ameublement", "value" : "ameublement" },
|
||||
{ "name" : " Electroménager", "value" : "electromenager" },
|
||||
{ "name" : " Arts de la table", "value" : "arts_de_la_table" },
|
||||
{ "name" : " Décoration", "value" : "decoration" },
|
||||
{ "name" : " Linge de maison", "value" : "linge_de_maison" },
|
||||
{ "name" : " Bricolage", "value" : "bricolage" },
|
||||
{ "name" : " Jardinage", "value" : "jardinage" },
|
||||
{ "name" : " Vêtements", "value" : "vetements" },
|
||||
{ "name" : " Chaussures", "value" : "chaussures" },
|
||||
{ "name" : " Accessoires & Bagagerie", "value" : "accessoires_bagagerie" },
|
||||
{ "name" : " Montres & Bijoux", "value" : "montres_bijoux" },
|
||||
{ "name" : " Equipement bébé", "value" : "equipement_bebe" },
|
||||
{ "name" : " Vêtements bébé", "value" : "vetements_bebe" },
|
||||
|
||||
{ "name" : "", "value" : "" },
|
||||
{ "name" : "AUTRES", "value" : "autres" }
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'k'=>array('name'=>'Mot Clé'),
|
||||
'r'=>array(
|
||||
'name'=>'Région',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'Alsace'=>'alsace',
|
||||
'Aquitaine'=>'aquitaine',
|
||||
'Auvergne'=>'auvergne',
|
||||
'Basse Normandie'=>'basse_normandie',
|
||||
'Bourgogne'=>'bourgogne',
|
||||
'Bretagne'=>'bretagne',
|
||||
'Centre'=>'centre',
|
||||
'Champagne Ardenne'=>'champagne_ardenne',
|
||||
'Corse'=>'corse',
|
||||
'Franche Comté'=>'franche_comte',
|
||||
'Haute Normandie'=>'haute_normandie',
|
||||
'Ile de France'=>'ile_de_france',
|
||||
'Languedoc Roussillon'=>'languedoc_roussillon',
|
||||
'Limousin'=>'limousin',
|
||||
'Lorraine'=>'lorraine',
|
||||
'Midi Pyrénées'=>'midi_pyrenees',
|
||||
'Nord Pas De Calais'=>'nord_pas_de_calais',
|
||||
'Pays de la Loire'=>'pays_de_la_loire',
|
||||
'Picardie'=>'picardie',
|
||||
'Poitou Charentes'=>'poitou_charentes',
|
||||
'Provence Alpes Côte d\'Azur'=>'provence_alpes_cote_d_azur',
|
||||
'Rhône-Alpes'=>'rhone_alpes',
|
||||
'Guadeloupe'=>'guadeloupe',
|
||||
'Martinique'=>'martinique',
|
||||
'Guyane'=>'guyane',
|
||||
'Réunion'=>'reunion'
|
||||
)
|
||||
),
|
||||
'c'=>array(
|
||||
'name'=>'Catégorie',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'EMPLOI'=>'_emploi_',
|
||||
'VEHICULES'=>array(
|
||||
'Tous'=>'_vehicules_',
|
||||
'Voitures'=>'voitures',
|
||||
'Motos'=>'motos',
|
||||
'Caravaning'=>'caravaning',
|
||||
'Utilitaires'=>'utilitaires',
|
||||
'Équipement Auto'=>'equipement_auto',
|
||||
'Équipement Moto'=>'equipement_moto',
|
||||
'Équipement Caravaning'=>'equipement_caravaning',
|
||||
'Nautisme'=>'nautisme',
|
||||
'Équipement Nautisme'=>'equipement_nautisme'
|
||||
),
|
||||
'IMMOBILIER'=>array(
|
||||
'Tous'=>'_immobilier_',
|
||||
'Ventes immobilières'=>'ventes_immobilieres',
|
||||
'Locations'=>'locations',
|
||||
'Colocations'=>'colocations',
|
||||
'Bureaux & Commerces'=>'bureaux_commerces'
|
||||
),
|
||||
'VACANCES'=>array(
|
||||
'Tous'=>'_vacances_',
|
||||
'Location gîtes'=>'locations_gites',
|
||||
'Chambres d\'hôtes'=>'chambres_d_hotes',
|
||||
'Campings'=>'campings',
|
||||
'Hôtels'=>'hotels',
|
||||
'Hébergements insolites'=>'hebergements_insolites'
|
||||
),
|
||||
'MULTIMEDIA'=>array(
|
||||
'Tous'=>'_multimedia_',
|
||||
'Informatique'=>'informatique',
|
||||
'Consoles & Jeux vidéo'=>'consoles_jeux_video',
|
||||
'Image & Son'=>'image_son',
|
||||
'Téléphonie'=>'telephonie'
|
||||
),
|
||||
'LOISIRS'=>array(
|
||||
'Tous'=>'_loisirs_',
|
||||
'DVD / Films'=>'dvd_films',
|
||||
'CD / Musique'=>'cd_musique',
|
||||
'Livres'=>'livres',
|
||||
'Animaux'=>'animaux',
|
||||
'Vélos'=>'velos',
|
||||
'Sports & Hobbies'=>'sports_hobbies',
|
||||
'Instruments de musique'=>'instruments_de_musique',
|
||||
'Collection'=>'collection',
|
||||
'Jeux & Jouets'=>'jeux_jouets',
|
||||
'Vins & Gastronomie'=>'vins_gastronomie'
|
||||
),
|
||||
'MATÉRIEL PROFESSIONNEL'=>array(
|
||||
'Tous'=>'_materiel_professionnel_',
|
||||
'Matériel Agricole'=>'mateiel_agricole',
|
||||
'Transport - Manutention'=>'transport_manutention',
|
||||
'BTP - Chantier - Gros-œuvre'=>'btp_chantier_gros_oeuvre',
|
||||
'Outillage - Matériaux 2nd-œuvre'=>'outillage_materiaux_2nd_oeuvre',
|
||||
'Équipements Industriels'=>'equipement_industriels',
|
||||
'Restauration - Hôtellerie'=>'restauration_hotellerie',
|
||||
'Fournitures de Bureau'=>'fournitures_de_bureau',
|
||||
'Commerces & Marchés'=>'commerces_marches',
|
||||
'Matériel médical'=>'materiel_medical'
|
||||
),
|
||||
'SERVICES'=>array(
|
||||
'Tous'=>'_services_',
|
||||
'Prestations de services'=>'prestations_de_services',
|
||||
'Billetterie'=>'billetterie',
|
||||
'Évènements'=>'evenements',
|
||||
'Cours particuliers'=>'cours_particuliers',
|
||||
'Covoiturage'=>'covoiturage'
|
||||
),
|
||||
'MAISON'=>array(
|
||||
'Tous'=>'_maison_',
|
||||
'Ameublement'=>'ameublement',
|
||||
'Électroménager'=>'electromenager',
|
||||
'Arts de la table'=>'arts_de_la_table',
|
||||
'Décoration'=>'decoration',
|
||||
'Linge de maison'=>'linge_de_maison',
|
||||
'Bricolage'=>'bricolage',
|
||||
'Jardinage'=>'jardinage',
|
||||
'Vêtements'=>'vetements',
|
||||
'Chaussures'=>'chaussures',
|
||||
'Accessoires & Bagagerie'=>'accessoires_bagagerie',
|
||||
'Montres & Bijoux'=>'montres_bijoux',
|
||||
'Équipement bébé'=>'equipement_bebe',
|
||||
'Vêtements bébé'=>'vetements_bebe'
|
||||
),
|
||||
'AUTRES'=>'autres'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ class LeJournalDuGeekBridge extends BridgeAbstract{
|
|||
$this->name = "journaldugeek.com (FR)";
|
||||
$this->uri = "http://www.journaldugeek.com/";
|
||||
$this->description = "Returns the 5 newest posts from LeJournalDuGeek (full text).";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function LeJournalDuGeekStripCDATA($string) {
|
||||
|
@ -16,7 +15,7 @@ class LeJournalDuGeekBridge extends BridgeAbstract{
|
|||
}
|
||||
|
||||
private function LeJournalDuGeekExtractContent($url) {
|
||||
$articleHTMLContent = $this->getSimpleHMLDOM($url);
|
||||
$articleHTMLContent = $this->getSimpleHTMLDOM($url);
|
||||
$text = $articleHTMLContent->find('div.post-content', 0)->innertext;
|
||||
|
||||
foreach($articleHTMLContent->find('a.more') as $element) {
|
||||
|
|
|
@ -7,7 +7,6 @@ class LeMondeInformatiqueBridge extends BridgeAbstract {
|
|||
$this->name = "Le Monde Informatique";
|
||||
$this->uri = "http://www.lemondeinformatique.fr/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ class Les400Culs extends RssExpander{
|
|||
$this->name = "Les 400 Culs";
|
||||
$this->uri = "http://sexes.blogs.liberation.fr";
|
||||
$this->description = "La planete sexe vue par Agnes Girard via rss-bridge";
|
||||
$this->update = "2016-08-09";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ class LesJoiesDuCodeBridge extends BridgeAbstract{
|
|||
$this->name = "Les Joies Du Code";
|
||||
$this->uri = "http://lesjoiesducode.fr/";
|
||||
$this->description = "LesJoiesDuCode";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ class LichessBridge extends BridgeAbstract
|
|||
$this->name = 'Lichess Blog';
|
||||
$this->uri = 'http://lichess.org/blog';
|
||||
$this->description = 'Returns the 5 newest posts from the Lichess blog (full text)';
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
public function collectData(array $param)
|
||||
|
|
|
@ -7,20 +7,18 @@ class LinkedInCompany extends BridgeAbstract{
|
|||
$this->name = "LinkedIn Company";
|
||||
$this->uri = "https://www.linkedin.com/";
|
||||
$this->description = "Returns most recent actus from Company on LinkedIn. (https://www.linkedin.com/company/<strong style=\"font-weight:bold;\">apple</strong>)";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Company name",
|
||||
"identifier" : "c"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'c'=>array(
|
||||
'name'=>'Company name',
|
||||
'required'=>true
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
$html = '';
|
||||
$link = 'https://www.linkedin.com/company/'.$param[c];
|
||||
$link = 'https://www.linkedin.com/company/'.$param['c'];
|
||||
|
||||
$html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request LinkedIn.');
|
||||
|
||||
|
|
|
@ -7,21 +7,14 @@ class LolibooruBridge extends BridgeAbstract{
|
|||
$this->name = "Lolibooru";
|
||||
$this->uri = "http://lolibooru.moe/";
|
||||
$this->description = "Returns images from given page and tags";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -8,195 +8,74 @@ class MangareaderBridge extends BridgeAbstract{
|
|||
$this->name = "Mangareader Bridge";
|
||||
$this->uri = "http://www.mangareader.net";
|
||||
$this->description = "Returns the latest updates, popular mangas or manga updates (new chapters)";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters["Get latest updates"] = '[]';
|
||||
$this->parameters["Get popular mangas"] =
|
||||
'[
|
||||
{
|
||||
"name" : "Category",
|
||||
"identifier" : "category",
|
||||
"type" : "list",
|
||||
"required" : true,
|
||||
"values" : [
|
||||
{
|
||||
"name" : "All",
|
||||
"value" : "all"
|
||||
},
|
||||
{
|
||||
"name" : "Action",
|
||||
"value" : "action"
|
||||
},
|
||||
{
|
||||
"name" : "Adventure",
|
||||
"value" : "adventure"
|
||||
},
|
||||
{
|
||||
"name" : "Comedy",
|
||||
"value" : "comedy"
|
||||
},
|
||||
{
|
||||
"name" : "Demons",
|
||||
"value" : "demons"
|
||||
},
|
||||
{
|
||||
"name" : "Drama",
|
||||
"value" : "drama"
|
||||
},
|
||||
{
|
||||
"name" : "Ecchi",
|
||||
"value" : "ecchi"
|
||||
},
|
||||
{
|
||||
"name" : "Fantasy",
|
||||
"value" : "fantasy"
|
||||
},
|
||||
{
|
||||
"name" : "Gender Bender",
|
||||
"value" : "gender-bender"
|
||||
},
|
||||
{
|
||||
"name" : "Harem",
|
||||
"value" : "harem"
|
||||
},
|
||||
{
|
||||
"name" : "Historical",
|
||||
"value" : "historical"
|
||||
},
|
||||
{
|
||||
"name" : "Horror",
|
||||
"value" : "horror"
|
||||
},
|
||||
{
|
||||
"name" : "Josei",
|
||||
"value" : "josei"
|
||||
},
|
||||
{
|
||||
"name" : "Magic",
|
||||
"value" : "magic"
|
||||
},
|
||||
{
|
||||
"name" : "Martial Arts",
|
||||
"value" : "martial-arts"
|
||||
},
|
||||
{
|
||||
"name" : "Mature",
|
||||
"value" : "mature"
|
||||
},
|
||||
{
|
||||
"name" : "Mecha",
|
||||
"value" : "mecha"
|
||||
},
|
||||
{
|
||||
"name" : "Military",
|
||||
"value" : "military"
|
||||
},
|
||||
{
|
||||
"name" : "Mystery",
|
||||
"value" : "mystery"
|
||||
},
|
||||
{
|
||||
"name" : "One Shot",
|
||||
"value" : "one-shot"
|
||||
},
|
||||
{
|
||||
"name" : "Psychological",
|
||||
"value" : "psychological"
|
||||
},
|
||||
{
|
||||
"name" : "Romance",
|
||||
"value" : "romance"
|
||||
},
|
||||
{
|
||||
"name" : "School Life",
|
||||
"value" : "school-life"
|
||||
},
|
||||
{
|
||||
"name" : "Sci-Fi",
|
||||
"value" : "sci-fi"
|
||||
},
|
||||
{
|
||||
"name" : "Seinen",
|
||||
"value" : "seinen"
|
||||
},
|
||||
{
|
||||
"name" : "Shoujo",
|
||||
"value" : "shoujo"
|
||||
},
|
||||
{
|
||||
"name" : "Shoujoai",
|
||||
"value" : "shoujoai"
|
||||
},
|
||||
{
|
||||
"name" : "Shounen",
|
||||
"value" : "shounen"
|
||||
},
|
||||
{
|
||||
"name" : "Shounenai",
|
||||
"value" : "shounenai"
|
||||
},
|
||||
{
|
||||
"name" : "Slice of Life",
|
||||
"value" : "slice-of-life"
|
||||
},
|
||||
{
|
||||
"name" : "Smut",
|
||||
"value" : "smut"
|
||||
},
|
||||
{
|
||||
"name" : "Sports",
|
||||
"value" : "sports"
|
||||
},
|
||||
{
|
||||
"name" : "Super Power",
|
||||
"value" : "super-power"
|
||||
},
|
||||
{
|
||||
"name" : "Supernatural",
|
||||
"value" : "supernatural"
|
||||
},
|
||||
{
|
||||
"name" : "Tragedy",
|
||||
"value" : "tragedy"
|
||||
},
|
||||
{
|
||||
"name" : "Vampire",
|
||||
"value" : "vampire"
|
||||
},
|
||||
{
|
||||
"name" : "Yaoi",
|
||||
"value" : "yaoi"
|
||||
},
|
||||
{
|
||||
"name" : "Yuri",
|
||||
"value" : "yuri"
|
||||
}
|
||||
],
|
||||
"exampleValue" : "All",
|
||||
"title" : "Select your category"
|
||||
}
|
||||
]';
|
||||
$this->parameters["Get manga updates"] =
|
||||
'[
|
||||
{
|
||||
"name" : "Path",
|
||||
"identifier" : "path",
|
||||
"type" : "text",
|
||||
"required" : true,
|
||||
"pattern" : "[a-zA-Z0-9-_]*",
|
||||
"exampleValue" : "bleach, umi-no-kishidan",
|
||||
"title" : "URL part of desired manga"
|
||||
},
|
||||
{
|
||||
"name" : "Limit",
|
||||
"identifier" : "limit",
|
||||
"type" : "number",
|
||||
"exampleValue" : "10",
|
||||
"title" : "Number of items to return.\n-1 returns all"
|
||||
}
|
||||
]';
|
||||
$this->parameters["Get latest updates"] = array();
|
||||
$this->parameters["Get popular mangas"] = array(
|
||||
'category'=>array(
|
||||
'name'=>'Category',
|
||||
'type'=>'list',
|
||||
'required'=>true,
|
||||
'values'=>array(
|
||||
'All'=>'all',
|
||||
'Action'=>'action',
|
||||
'Adventure'=>'adventure',
|
||||
'Comedy'=>'comedy',
|
||||
'Demons'=>'demons',
|
||||
'Drama'=>'drama',
|
||||
'Ecchi'=>'ecchi',
|
||||
'Fantasy'=>'fantasy',
|
||||
'Gender Bender'=>'gender-bender',
|
||||
'Harem'=>'harem',
|
||||
'Historical'=>'historical',
|
||||
'Horror'=>'horror',
|
||||
'Josei'=>'josei',
|
||||
'Magic'=>'magic',
|
||||
'Martial Arts'=>'martial-arts',
|
||||
'Mature'=>'mature',
|
||||
'Mecha'=>'mecha',
|
||||
'Military'=>'military',
|
||||
'Mystery'=>'mystery',
|
||||
'One Shot'=>'one-shot',
|
||||
'Psychological'=>'psychological',
|
||||
'Romance'=>'romance',
|
||||
'School Life'=>'school-life',
|
||||
'Sci-Fi'=>'sci-fi',
|
||||
'Seinen'=>'seinen',
|
||||
'Shoujo'=>'shoujo',
|
||||
'Shoujoai'=>'shoujoai',
|
||||
'Shounen'=>'shounen',
|
||||
'Shounenai'=>'shounenai',
|
||||
'Slice of Life'=>'slice-of-life',
|
||||
'Smut'=>'smut',
|
||||
'Sports'=>'sports',
|
||||
'Super Power'=>'super-power',
|
||||
'Supernatural'=>'supernatural',
|
||||
'Tragedy'=>'tragedy',
|
||||
'Vampire'=>'vampire',
|
||||
'Yaoi'=>'yaoi',
|
||||
'Yuri'=>'yuri'
|
||||
),
|
||||
'exampleValue'=>'All',
|
||||
'title'=>'Select your category'
|
||||
)
|
||||
);
|
||||
$this->parameters["Get manga updates"] = array(
|
||||
'path'=>array(
|
||||
'name'=>'Path',
|
||||
'required'=>true,
|
||||
'pattern'=>'[a-zA-Z0-9-_]*',
|
||||
'exampleValue'=>'bleach, umi-no-kishidan',
|
||||
'title'=>'URL part of desired manga'
|
||||
),
|
||||
'limit'=>array(
|
||||
'name'=>'Limit',
|
||||
'type'=>'number',
|
||||
'exampleValue'=>10,
|
||||
'title'=>'Number of items to return [-1 returns all]'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public function collectData(array $param){
|
||||
|
||||
$this->request = '';
|
||||
|
@ -204,7 +83,7 @@ class MangareaderBridge extends BridgeAbstract{
|
|||
$type = "latest"; // can be "latest", "popular" or "path". Default is "latest"!
|
||||
$path = "latest";
|
||||
$limit = MANGAREADER_LIMIT;
|
||||
|
||||
|
||||
if(isset($param['category'])){ // Get popular updates
|
||||
$type = "popular";
|
||||
$path = "popular";
|
||||
|
@ -212,16 +91,16 @@ class MangareaderBridge extends BridgeAbstract{
|
|||
$path .= "/" . $param['category'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(isset($param['path'])){ // Get manga updates
|
||||
$type = "path";
|
||||
$path = $param['path'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(isset($param['limit']) && $param['limit'] !== ""){ // Get manga updates (optional parameter)
|
||||
$limit = $param['limit'];
|
||||
}
|
||||
|
||||
|
||||
// We'll use the DOM parser for this as it makes navigation easier
|
||||
$html = file_get_contents("http://www.mangareader.net/" . $path);
|
||||
if(!$html){
|
||||
|
@ -229,22 +108,22 @@ class MangareaderBridge extends BridgeAbstract{
|
|||
}
|
||||
$doc = new DomDocument;
|
||||
@$doc->loadHTML($html);
|
||||
|
||||
|
||||
// Navigate via XPath
|
||||
$xpath = new DomXPath($doc);
|
||||
|
||||
// Build feed based on the context (site updates or manga updates)
|
||||
if($type === "latest"){
|
||||
|
||||
|
||||
$this->request = 'Latest updates';
|
||||
|
||||
|
||||
// Query each item (consists of Manga + chapters)
|
||||
$nodes = $xpath->query("//*[@id='latestchapters']/table//td");
|
||||
|
||||
foreach ($nodes as $node){
|
||||
// Query the manga
|
||||
$manga = $xpath->query("a[@class='chapter']", $node)->item(0);
|
||||
|
||||
|
||||
// Collect the chapters for each Manga
|
||||
$chapters = $xpath->query("a[@class='chaptersrec']", $node);
|
||||
|
||||
|
@ -252,35 +131,35 @@ class MangareaderBridge extends BridgeAbstract{
|
|||
$item = new \Item();
|
||||
$item->uri = 'http://www.mangareader.net' . htmlspecialchars($manga->getAttribute('href'));
|
||||
$item->title = htmlspecialchars($manga->nodeValue);
|
||||
|
||||
// Add each chapter to the feed
|
||||
|
||||
// Add each chapter to the feed
|
||||
$item->content = "";
|
||||
|
||||
|
||||
foreach ($chapters as $chapter){
|
||||
if($item->content <> ""){
|
||||
$item->content .= "<br>";
|
||||
}
|
||||
$item->content .= "<a href='http://www.mangareader.net" . htmlspecialchars($chapter->getAttribute('href')) . "'>" . htmlspecialchars($chapter->nodeValue) . "</a>";
|
||||
}
|
||||
|
||||
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if($type === "popular"){
|
||||
|
||||
|
||||
$pagetitle = $xpath->query(".//*[@id='bodyalt']/h1")->item(0)->nodeValue;
|
||||
$this->request = substr($pagetitle, 0, strrpos($pagetitle, " -")); // "Popular mangas for ..."
|
||||
|
||||
|
||||
// Query all mangas
|
||||
$mangas = $xpath->query("//*[@id='mangaresults']/*[@class='mangaresultitem']");
|
||||
|
||||
foreach ($mangas as $manga){
|
||||
|
||||
|
||||
foreach ($mangas as $manga){
|
||||
|
||||
// The thumbnail is encrypted in a css-style...
|
||||
// format: "background-image:url('<the part which is actually interesting>')"
|
||||
$mangaimgelement = $xpath->query(".//*[@class='imgsearchresults']", $manga)->item(0)->getAttribute('style');
|
||||
$mangaimgelement = $xpath->query(".//*[@class='imgsearchresults']", $manga)->item(0)->getAttribute('style');
|
||||
$thumbnail = substr($mangaimgelement, 22, strlen($mangaimgelement) - 24);
|
||||
|
||||
$item = new \Item();
|
||||
|
@ -293,35 +172,35 @@ class MangareaderBridge extends BridgeAbstract{
|
|||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($type === "path") {
|
||||
|
||||
|
||||
$this->request = $xpath->query(".//*[@id='mangaproperties']//*[@class='aname']")->item(0)->nodeValue;
|
||||
|
||||
|
||||
$query = "(.//*[@id='listing']//tr)[position() > 1]";
|
||||
|
||||
|
||||
if($limit !== -1){
|
||||
$query = "(.//*[@id='listing']//tr)[position() > 1][position() > last() - " . $limit . "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$chapters = $xpath->query($query);
|
||||
|
||||
|
||||
foreach ($chapters as $chapter){
|
||||
$item = new \Item();
|
||||
$item->title = htmlspecialchars($xpath->query("td[1]", $chapter)->item(0)->nodeValue);
|
||||
$item->uri = 'http://www.mangareader.net' . $xpath->query("td[1]/a", $chapter)->item(0)->getAttribute('href');
|
||||
$item->timestamp = strtotime($xpath->query("td[2]", $chapter)->item(0)->nodeValue);
|
||||
array_unshift($this->items, $item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Return some dummy-data if no content available
|
||||
if(count($this->items) == 0){
|
||||
$item = new \Item();
|
||||
$item->content = "<p>No updates available</p>";
|
||||
|
||||
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getName(){
|
||||
|
@ -332,4 +211,4 @@ class MangareaderBridge extends BridgeAbstract{
|
|||
return 10800; // 3 hours
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -7,20 +7,14 @@ class MilbooruBridge extends BridgeAbstract{
|
|||
$this->name = "Milbooru";
|
||||
$this->uri = "http://sheslostcontrol.net/moe/shimmie/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -6,7 +6,6 @@ class MondeDiploBridge extends BridgeAbstract{
|
|||
$this->name = 'Monde Diplomatique';
|
||||
$this->uri = 'http://www.monde-diplomatique.fr';
|
||||
$this->description = "Returns most recent results from MondeDiplo.";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -6,11 +6,10 @@ class MsnMondeBridge extends BridgeAbstract{
|
|||
$this->name = 'MSN Actu Monde';
|
||||
$this->uri = 'http://www.msn.com/fr-fr/actualite/monde';
|
||||
$this->description = "Returns the 10 newest posts from MSN Actualités (full text)";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function MsnMondeExtractContent($url, &$item) {
|
||||
$html2 = $this->getSimpleHTLDOM($url);
|
||||
$html2 = $this->getSimpleHTMLDOM($url);
|
||||
$item->content = $html2->find('#content', 0)->find('article', 0)->find('section', 0)->plaintext;
|
||||
$item->timestamp = strtotime($html2->find('.authorinfo-txt', 0)->find('time', 0)->datetime);
|
||||
}
|
||||
|
|
|
@ -7,20 +7,14 @@ class MspabooruBridge extends BridgeAbstract{
|
|||
$this->name = "Mspabooru";
|
||||
$this->uri = "http://mspabooru.com/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ class NakedSecurityBridge extends BridgeAbstract {
|
|||
$this->name = 'Naked Security';
|
||||
$this->uri = 'https://nakedsecurity.sophos.com/';
|
||||
$this->description = 'Returns the newest articles.';
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -7,7 +7,6 @@ class NasaApodBridge extends BridgeAbstract{
|
|||
$this->name = "NASA APOD Bridge";
|
||||
$this->uri = "http://apod.nasa.gov/apod/astropix.html";
|
||||
$this->description = "Returns the 3 latest NASA APOD pictures and explanations";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ class NeuviemeArtBridge extends BridgeAbstract {
|
|||
$this->name = '9ème Art Bridge';
|
||||
$this->uri = "http://www.9emeart.fr/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -6,7 +6,6 @@ class NextInpactBridge extends BridgeAbstract {
|
|||
$this->name = "NextInpact Bridge";
|
||||
$this->uri = "http://www.nextinpact.com/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function StripCDATA($string) {
|
||||
|
@ -16,7 +15,7 @@ class NextInpactBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
private function ExtractContent($url) {
|
||||
$html2 = $this->getSimpleHTLDOM($url);
|
||||
$html2 = $this->getSimpleHTMLDOM($url);
|
||||
$text = '<p><em>'.$html2->find('span.sub_title', 0)->innertext.'</em></p>'
|
||||
.'<p><img src="'.$html2->find('div.container_main_image_article', 0)->find('img.dedicated',0)->src.'" alt="-" /></p>'
|
||||
.'<div>'.$html2->find('div[itemprop=articleBody]', 0)->innertext.'</div>';
|
||||
|
|
|
@ -7,30 +7,25 @@ class NextgovBridge extends BridgeAbstract {
|
|||
$this->name = 'Nextgov Bridge';
|
||||
$this->uri = 'https://www.nextgov.com/';
|
||||
$this->description = 'USA Federal technology news, best practices, and web 2.0 tools.';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Category",
|
||||
"type" : "list",
|
||||
"identifier" : "category",
|
||||
"values" :
|
||||
[
|
||||
{ "name" : "All", "value" : "all" },
|
||||
{ "name" : "Technology News", "value" : "technology-news" },
|
||||
{ "name" : "CIO Briefing", "value" : "cio-briefing" },
|
||||
{ "name" : "Emerging Tech", "value" : "emerging-tech" },
|
||||
{ "name" : "Cloud", "value" : "cloud-computing" },
|
||||
{ "name" : "Cybersecurity", "value" : "cybersecurity" },
|
||||
{ "name" : "Mobile", "value" : "mobile" },
|
||||
{ "name" : "Health", "value" : "health" },
|
||||
{ "name" : "Defense", "value" : "defense" },
|
||||
{ "name" : "Big Data", "value" : "big-data" }
|
||||
]
|
||||
}
|
||||
]';
|
||||
|
||||
$this->parameters[] = array(
|
||||
'category'=>array(
|
||||
'name'=>'Category',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'All'=>'all',
|
||||
'Technology News'=>'technology-news',
|
||||
'CIO Briefing'=>'cio-briefing',
|
||||
'Emerging Tech'=>'emerging-tech',
|
||||
'Cloud'=>'cloud-computing',
|
||||
'Cybersecurity'=>'cybersecurity',
|
||||
'Mobile'=>'mobile',
|
||||
'Health'=>'health',
|
||||
'Defense'=>'defense',
|
||||
'Big Data'=>'big-data'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -6,7 +6,6 @@ class NiceMatinBridge extends BridgeAbstract{
|
|||
$this->name = "NiceMatin";
|
||||
$this->uri = "http://www.nicematin.com/";
|
||||
$this->description = "Returns the 10 newest posts from NiceMatin (full text)";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function NiceMatinExtractContent($url) {
|
||||
|
|
|
@ -7,14 +7,12 @@ class NovelUpdatesBridge extends BridgeAbstract{
|
|||
$this->name = "Novel Updates";
|
||||
$this->uri = "http://www.novelupdates.com/";
|
||||
$this->description = "Returns releases from Novel Updates";
|
||||
$this->update = '2016-08-17';
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Novel URL",
|
||||
"identifier" : "n"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'n'=>array(
|
||||
'name'=>'Novel URL',
|
||||
'required'=>true
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -7,7 +7,6 @@ class NumeramaBridge extends BridgeAbstract{
|
|||
$this->name = 'Numerama';
|
||||
$this->uri = 'http://www.numerama.com/';
|
||||
$this->description = 'Returns the 5 newest posts from Numerama (full text)';
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,55 +7,25 @@ class OpenClassroomsBridge extends BridgeAbstract{
|
|||
$this->name = "OpenClassrooms Bridge";
|
||||
$this->uri = "https://openclassrooms.com/";
|
||||
$this->description = "Returns latest tutorials from OpenClassrooms.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
|
||||
$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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'u'=>array(
|
||||
'name'=>'Catégorie',
|
||||
'type'=>'list',
|
||||
'values'=>array(
|
||||
'Arts & Culture'=>'arts',
|
||||
'Code'=>'code',
|
||||
'Design'=>'design',
|
||||
'Entreprise'=>'business',
|
||||
'Numérique'=>'digital',
|
||||
'Sciences'=>'sciences',
|
||||
'Sciences Humaines'=>'humainities',
|
||||
'Systèmes d\'information'=>'it',
|
||||
'Autres'=>'others'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -10,34 +10,23 @@ class ParuVenduImmoBridge extends BridgeAbstract
|
|||
$this->name = "Paru Vendu Immobilier";
|
||||
$this->uri = "http://www.paruvendu.fr";
|
||||
$this->description = "Returns the ads from the first page of search result.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
|
||||
$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"
|
||||
}
|
||||
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'minarea'=>array(
|
||||
'name'=>'Minimal surface m²',
|
||||
'type'=>'number'
|
||||
),
|
||||
'maxprice'=>array(
|
||||
'name'=>'Max price',
|
||||
'type'=>'number'
|
||||
),
|
||||
'pa'=>array(
|
||||
'name'=>'Country code',
|
||||
'exampleValue'=>'FR'
|
||||
),
|
||||
'lo'=>array('name'=>'department numbers or postal codes, comma-separated')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param)
|
||||
|
|
|
@ -11,31 +11,21 @@ class PickyWallpapersBridge extends BridgeAbstract {
|
|||
$this->name = "PickyWallpapers Bridge";
|
||||
$this->uri = "http://www.pickywallpapers.com/";
|
||||
$this->description = "Returns the latests wallpapers from PickyWallpapers";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$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, ...",
|
||||
"pattern" : "[0-9]{3,4}x[0-9]{3,4}"
|
||||
}
|
||||
$this->parameters[] = array(
|
||||
'c'=>array('name'=>'category'),
|
||||
's'=>array('name'=>'subcategory'),
|
||||
'm'=>array(
|
||||
'name'=>'Max number of wallpapers',
|
||||
'type'=>'number'
|
||||
),
|
||||
'r'=>array(
|
||||
'name'=>'resolution',
|
||||
'exampleValue'=>'1920x1200, 1680x1050,…',
|
||||
'pattern'=>'[0-9]{3,4}x[0-9]{3,4}'
|
||||
)
|
||||
);
|
||||
|
||||
]';
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -11,28 +11,15 @@ class PinterestBridge extends BridgeAbstract{
|
|||
$this->name = "Pinterest Bridge";
|
||||
$this->uri = "http://www.pinterest.com";
|
||||
$this->description = "Returns the newest images on a board";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters["By username and board"] =
|
||||
'[
|
||||
{
|
||||
"name" : "username",
|
||||
"identifier" : "u"
|
||||
},
|
||||
{
|
||||
"name" : "board",
|
||||
"identifier" : "b"
|
||||
$this->parameters["By username and board"] = array(
|
||||
'u'=>array('name'=>'username'),
|
||||
'b'=>array('name'=>'board')
|
||||
);
|
||||
|
||||
}
|
||||
]';
|
||||
|
||||
$this->parameters["From search"] =
|
||||
'[
|
||||
{
|
||||
"name" : "Keyword",
|
||||
"identifier" : "q"
|
||||
}
|
||||
]';
|
||||
$this->parameters["From search"] = array(
|
||||
'q'=>array('name'=>'Keyword')
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -6,11 +6,10 @@ class PlanetLibreBridge extends BridgeAbstract{
|
|||
$this->name = "PlanetLibre";
|
||||
$this->uri = "http://www.planet-libre.org";
|
||||
$this->description = "Returns the 5 newest posts from PlanetLibre (full text)";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function PlanetLibreExtractContent($url){
|
||||
$html2 = $this->geSimpleHTMLDOM($url);
|
||||
$html2 = $this->getSimpleHTMLDOM($url);
|
||||
$text = $html2->find('div[class="post-text"]', 0)->innertext;
|
||||
return $text;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ class ProjectMGameBridge extends BridgeAbstract{
|
|||
$this->name = "Project M Game Bridge";
|
||||
$this->uri = "http://projectmgame.com/en/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -5,18 +5,14 @@ class RTBFBridge extends BridgeAbstract {
|
|||
$this->uri = "http://www.rtbf.be/auvio/emissions";
|
||||
$this->description = "Returns the newest RTBF videos by series ID";
|
||||
$this->maintainer = "Frenzie";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"type" : "text",
|
||||
"identifier" : "c",
|
||||
"name" : "series id",
|
||||
"exampleValue" : "9500",
|
||||
"required" : true
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'c'=>array(
|
||||
'name'=>'series id',
|
||||
'exampleValue'=>9500,
|
||||
'required'=>true
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
|
|
@ -7,7 +7,6 @@ class Releases3DSBridge extends BridgeAbstract {
|
|||
$this->name = "3DS Scene Releases";
|
||||
$this->uri = "http://www.3dsdb.com/";
|
||||
$this->description = "Returns the newest scene releases.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ class ReporterreBridge extends BridgeAbstract{
|
|||
$this->name = "Reporterre Bridge";
|
||||
$this->uri = "http://www.reporterre.net/";
|
||||
$this->description = "Returns the newest articles.";
|
||||
$this->update = '2016-08-17';
|
||||
}
|
||||
|
||||
private function ExtractContentReporterre($url) {
|
||||
|
|
|
@ -7,7 +7,6 @@ class Rue89Bridge extends BridgeAbstract{
|
|||
$this->name = "Rue89";
|
||||
$this->uri = "http://rue89.nouvelobs.com/";
|
||||
$this->description = "Returns the 5 newest posts from Rue89 (full text)";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,20 +7,15 @@ class Rule34Bridge extends BridgeAbstract{
|
|||
$this->name = "Rule34";
|
||||
$this->uri = "http://rule34.xxx/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -7,20 +7,14 @@ class Rule34pahealBridge extends BridgeAbstract{
|
|||
$this->name = "Rule34paheal";
|
||||
$this->uri = "http://rule34.paheal.net/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -7,20 +7,14 @@ class SafebooruBridge extends BridgeAbstract{
|
|||
$this->name = "Safebooru";
|
||||
$this->uri = "http://safebooru.org/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,20 +7,15 @@ class SakugabooruBridge extends BridgeAbstract{
|
|||
$this->name = "Sakugabooru";
|
||||
$this->uri = "http://sakuga.yshi.org/";
|
||||
$this->description = "Returns images from given page";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "page",
|
||||
"identifier" : "p",
|
||||
"type" : "number"
|
||||
},
|
||||
{
|
||||
"name" : "tags",
|
||||
"identifier" : "t"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'p'=>array(
|
||||
'name'=>'page',
|
||||
'type'=>'number'
|
||||
),
|
||||
't'=>array('name'=>'tags')
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
public function collectData(array $param){
|
||||
|
|
|
@ -7,7 +7,6 @@ class ScmbBridge extends BridgeAbstract{
|
|||
$this->name = "Se Coucher Moins Bête Bridge";
|
||||
$this->uri = "http://secouchermoinsbete.fr/";
|
||||
$this->description = "Returns the newest anecdotes.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -7,15 +7,13 @@ class ScoopItBridge extends BridgeAbstract{
|
|||
$this->name = "ScoopIt";
|
||||
$this->uri = "http://www.scoop.it";
|
||||
$this->description = "Returns most recent results from ScoopIt.";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "keyword",
|
||||
"identifier" : "u"
|
||||
}
|
||||
]';
|
||||
$this->parameters[] = array(
|
||||
'u'=>array(
|
||||
'name'=>'keyword',
|
||||
'required'=>true
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -8,42 +8,34 @@ class SensCritiqueBridge extends BridgeAbstract {
|
|||
$this->name = "Sens Critique";
|
||||
$this->uri = "http://www.senscritique.com";
|
||||
$this->description = "Sens Critique news";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
$this->parameters[] =
|
||||
'[
|
||||
{
|
||||
"name" : "Movies",
|
||||
"identifier" : "m",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "Series",
|
||||
"identifier" : "s",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "Video Games",
|
||||
"identifier" : "g",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "Books",
|
||||
"identifier" : "b",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "BD",
|
||||
"identifier" : "bd",
|
||||
"type": "checkbox"
|
||||
},
|
||||
{
|
||||
"name" : "Music",
|
||||
"identifier" : "mu",
|
||||
"type": "checkbox"
|
||||
}
|
||||
]';
|
||||
}
|
||||
$this->parameters[] = array(
|
||||
'm'=>array(
|
||||
'name'=>'Movies',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
's'=>array(
|
||||
'name'=>'Series',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
'g'=>array(
|
||||
'name'=>'Video Games',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
'b'=>array(
|
||||
'name'=>'Books',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
'bd'=>array(
|
||||
'name'=>'BD',
|
||||
'type'=>'checkbox'
|
||||
),
|
||||
'mu'=>array(
|
||||
'name'=>'Music',
|
||||
'type'=>'checkbox'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
if ((isset($param['m']) && $param['m'])) {
|
||||
|
|
|
@ -7,7 +7,6 @@ class Sexactu extends BridgeAbstract{
|
|||
$this->name = "Sexactu";
|
||||
$this->uri = "http://www.gqmagazine.fr";
|
||||
$this->description = "Sexactu via rss-bridge";
|
||||
$this->update = '2016-08-17';
|
||||
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue