公司目录的LinkedIn API

Jac*_*ius 11 ruby api linkedin

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

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

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

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

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

Eri*_*son 15

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

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

例如,搜索"citr"即可

http://www.linkedin.com/ta/federator?query=citr&types=company,group,sitefeature
Run Code Online (Sandbox Code Playgroud)

哪个回报

{
   "sitefeature":{
      "resultList":[

      ]
   },
   "company":{
      "resultList":[
         {
            "id":"1195260",
            "headLine":"<strong>CiTR<\/strong> SHINDIG",
            "displayName":"CiTR SHINDIG",
            "subLine":"Entertainment; 1-10 employees",
            "url":"http://www.linkedin.com/companies/1195260"
         },
         {
            "id":"2641",
            "headLine":"<strong>Citr<\/strong>ix Systems",
            "imageUrl":"http://media03.linkedin.com/mpr/mpr/shrink_40_40/p/3/000/043/32b/0076ade.png",
            "displayName":"Citrix Systems",
            "subLine":"Computer Software; 1001-5000 employees",
            "url":"http://www.linkedin.com/companies/2641"
         },
         {
            "id":"7659",
            "headLine":"<strong>Citr<\/strong>oen",
            "imageUrl":"http://media01.linkedin.com/mpr/mpr/shrink_40_40/p/3/000/01d/3d0/277c145.png",
            "displayName":"Citroen",
            "subLine":"Automotive; 10,001+ employees",
            "url":"http://www.linkedin.com/companies/7659"
         },
         {
            "id":"260214",
            "headLine":"PSA Peugeot <strong>Citr<\/strong>oën",
            "imageUrl":"http://media02.linkedin.com/mpr/mpr/shrink_40_40/p/2/000/021/0b7/07c4193.png",
            "displayName":"PSA Peugeot Citroën",
            "subLine":"Automotive; 10,001+ employees",
            "url":"http://www.linkedin.com/companies/260214"
         },
...
Run Code Online (Sandbox Code Playgroud)