用于公司目录的 LinkedIn API [英] LinkedIn API for Company Directory

查看:24
本文介绍了用于公司目录的 LinkedIn API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 LinkedIn API 来搜索公司,而不是用户.我特别不想要用户——只想要公司.

I'm trying to use the LinkedIn API to search for companies, not users. I specifically don't want users - only companies.

我查看了 LinkedIn API 文档(RTFM 和所有这些),但据我所知,它不受支持.论坛上有 2 个帖子几乎直接说明了这一点 - here这里

I had a look at the LinkedIn API Documentation (RTFM and all that), but as far as I can tell it's not supported. There are 2 posts on the forum which pretty much says this outright - here and here

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

I'm basically just looking for a simply search interface, similar to what is going on on the LinkedIn homepage. I also want to display the info coming back in some way.

我最好直接手动获取网站本身吗?我需要缓存结果吗?我需要手动解析返回的 HTML 吗?

Am I better off simply doing a manual GET to the website itself? Would I need to cache the results? Would I need to manually parse the HTML coming back?

我计划在 Ruby 中实现这一点,但这并不是我真正关心的问题.

I'm planning on implementing this in Ruby, but that's not really what I'm concerned about.

推荐答案

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

Update: There is now an official API: https://developer-programs.linkedin.com/documents/company-search

官方API好像没有这个功能.但是,它们确实有一个 URL,您可以在其中传递对公司的搜索,它会返回一个 JSON 响应,其中包含公司名称、徽标 URL、员工人数以及指向公司资料的链接.

The official API does not seem to have this feature. However they do have a URL where you can pass in a search for companies and it will return a JSON response with the company name, logo URL, number of employees, and a link to the company profile.

例如搜索citr"将是

For instance a search of "citr" would be

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

哪个返回

{
   "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"
         },
...

这篇关于用于公司目录的 LinkedIn API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆