diff --git a/bridges/LinkedInCompany.php b/bridges/LinkedInCompanyBridge.php similarity index 82% rename from bridges/LinkedInCompany.php rename to bridges/LinkedInCompanyBridge.php index ccdf16c..e23f9d4 100644 --- a/bridges/LinkedInCompany.php +++ b/bridges/LinkedInCompanyBridge.php @@ -1,5 +1,5 @@ getInput('c'); + $link = $this->uri.'company/'.$this->getInput('c'); - $html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request LinkedIn.'); + $html = $this->getSimpleHTMLDOM($link) + or $this->returnServerError('Could not request LinkedIn.'); foreach($html->find('//*[@id="my-feed-post"]/li') as $element) { $title = $element->find('span.share-body', 0)->innertext;