LinkedIn的API公司名录 [英] LinkedIn API for Company Directory

查看:292
本文介绍了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和所有),但据我可以告诉它不支持。有哪些pretty论坛2个职位多说,这完全 - href=\"http://developer.linkedin.com/thread/2175?tstart=0\">和的这里

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似乎并不具备此功能。但是他们有一个网址,让您可以在企业搜索传递,它将返回与该公​​司名称,徽标网址,员工人数,并给公司配置文件的链接的JSON响应。

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天全站免登陆