公司目录的LinkedIn API

我正在尝试使用LinkedIn API来搜索公司 ,而不是用户 。 我特别不希望用户 – 只有公司。

我看了一下LinkedIn API文档(RTFM和所有这些),但据我所知,它不受支持。 论坛上有2个post,几乎可以说这个 – 这里和这里

我基本上只是在寻找一个简单的搜索界面,类似于LinkedIn主页上的内容。 我还想以某种方式显示回来的信息。

我最好简单地对网站进行手动GET吗? 我需要缓存结果吗? 我需要手动解析回来的HTML吗?

我打算在Ruby中实现它,但这并不是我真正关心的问题。

更新:现在有一个官方API: https : //developer-programs.linkedin.com/documents/company-search

官方API似乎没有此function。 但是,他们确实有一个URL,您可以在其中传递对公司的搜索,它将返回一个JSON响应,其中包含公司名称,徽标URL,员工数量以及公司配置文件的链接。

例如,搜索“citr”即可

http://www.linkedin.com/ta/federator?query=citr&types=company,group,sitefeature 

哪个回报

 { "sitefeature":{ "resultList":[ ] }, "company":{ "resultList":[ { "id":"1195260", "headLine":"CiTR<\/strong> SHINDIG", "displayName":"CiTR SHINDIG", "subLine":"Entertainment; 1-10 employees", "url":"http://www.linkedin.com/companies/1195260" }, { "id":"2641", "headLine":"Citr<\/strong>ix Systems", "imageUrl":"http://sofzh.miximages.com/ruby/0076ade.png", "displayName":"Citrix Systems", "subLine":"Computer Software; 1001-5000 employees", "url":"http://www.linkedin.com/companies/2641" }, { "id":"7659", "headLine":"Citr<\/strong>oen", "imageUrl":"http://sofzh.miximages.com/ruby/277c145.png", "displayName":"Citroen", "subLine":"Automotive; 10,001+ employees", "url":"http://www.linkedin.com/companies/7659" }, { "id":"260214", "headLine":"PSA Peugeot Citr<\/strong>oën", "imageUrl":"http://sofzh.miximages.com/ruby/07c4193.png", "displayName":"PSA Peugeot Citroën", "subLine":"Automotive; 10,001+ employees", "url":"http://www.linkedin.com/companies/260214" }, ... 

实际上,LinkedIn API现在具有自去年五月以来可用的公司搜索function: https : //developer.linkedin.com/documents/company-search

LinkedIn有几个公司API,这只是其中之一。 请随时阅读文档并查看可用的内容。

这似乎是Linkedin的API中的一项要求的function( https://developer.linkedin.com/thread/2970