用于公司目录的 LinkedIn API

发布于 2024-09-24 20:05:24 字数 495 浏览 3 评论 0原文

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

我查看了 LinkedIn API 文档(RTFM 等),但据我所知,它不受支持。论坛上有 2 个帖子几乎直接说明了这一点 - 此处 和 < a href="http://developer.linkedin.com/message/4891#4891" rel="noreferrer">这里

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

我是否最好直接手动 GET 访问网站本身?我需要缓存结果吗?我需要手动解析返回的 HTML 吗?

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

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

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

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.

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?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

柠檬色的秋千 2024-10-01 20:05:24

更新:现在有一个官方 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

返回以下内容

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

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

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.

For instance a search of "citr" would be

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

Which returns

{
   "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"
         },
...
青萝楚歌 2024-10-01 20:05:24

事实上,LinkedIn API 现在确实有公司搜索功能,自去年 5 月起就可用:
https://developer.linkedin.com/documents/company-search

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

Actually, the LinkedIn API does now have a company search feature, available since last May:
https://developer.linkedin.com/documents/company-search

LinkedIn has several Company APIs, this is just one of them. Please feel free to read through the documentation and see what's available.

方圜几里 2024-10-01 20:05:24

这似乎是 Linkedin API 中请求的功能( https://developer.linkedin.com/thread/2970< /一>)

This seems to be a requested feature in Linkedin's API ( https://developer.linkedin.com/thread/2970 )

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文