forked from blallo/rss-bridge
maj LinkedIn & Viadeo
This commit is contained in:
parent
f837032afb
commit
65a9c2b0bc
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ class LinkedInCompany extends BridgeAbstract{
|
||||||
$this->maintainer = "regisenguehard";
|
$this->maintainer = "regisenguehard";
|
||||||
$this->name = "LinkedIn Company";
|
$this->name = "LinkedIn Company";
|
||||||
$this->uri = "https://www.linkedin.com/";
|
$this->uri = "https://www.linkedin.com/";
|
||||||
$this->description = "Returns most recent actus from Company on LinkedIn.";
|
$this->description = "Returns most recent actus from Company on LinkedIn. (https://www.linkedin.com/company/<strong style=\"font-weight:bold;\">apple</strong>)";
|
||||||
$this->update = "2015-12-22";
|
$this->update = "2015-12-22";
|
||||||
|
|
||||||
$this->parameters[] =
|
$this->parameters[] =
|
||||||
|
@ -20,7 +20,7 @@ class LinkedInCompany extends BridgeAbstract{
|
||||||
|
|
||||||
public function collectData(array $param){
|
public function collectData(array $param){
|
||||||
$html = '';
|
$html = '';
|
||||||
$link = 'https://www.linkedin.com/company/'.urlencode($param[c]);
|
$link = 'https://www.linkedin.com/company/'.$param[c];
|
||||||
|
|
||||||
$html = file_get_html($link) or $this->returnError('Could not request LinkedIn.', 404);
|
$html = file_get_html($link) or $this->returnError('Could not request LinkedIn.', 404);
|
||||||
|
|
||||||
|
@ -47,6 +47,6 @@ class LinkedInCompany extends BridgeAbstract{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCacheDuration(){
|
public function getCacheDuration(){
|
||||||
return 0; // 6 hours
|
return 21600; // 6 hours
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ class ViadeoCompany extends BridgeAbstract{
|
||||||
$this->maintainer = "regisenguehard";
|
$this->maintainer = "regisenguehard";
|
||||||
$this->name = "Viadeo Company";
|
$this->name = "Viadeo Company";
|
||||||
$this->uri = "https://www.viadeo.com/";
|
$this->uri = "https://www.viadeo.com/";
|
||||||
$this->description = "Returns most recent actus from Company on Viadeo.";
|
$this->description = "Returns most recent actus from Company on Viadeo. (http://www.viadeo.com/fr/company/<strong style=\"font-weight:bold;\">apple</strong>)";
|
||||||
$this->update = "2015-12-22";
|
$this->update = "2015-12-22";
|
||||||
|
|
||||||
$this->parameters[] =
|
$this->parameters[] =
|
||||||
|
|
Loading…
Reference in a new issue