如何从给定的公司名称中查找URL、Twitter用户名、LinkedIn用户名、Facebook用户名



我有一份公司列表:

New York Times
Sony
Washington Post
Panasonic
Toyota
others...

对于列表中的每一家公司,我都需要:

Company URL
Twitter @Username
LinkedIn Username
Facebook Username

有没有一个API服务可以以自动化的方式做到这一点?也许各种服务的组合可以起作用?

我不知道其他网络,但对于Facebook,你可以简单地使用API搜索的组合来定位页面:

https://graph.facebook.com/search?q=New%20York%20Times&type=page

这将返回许多页面ID:

{
"data": [
{
"name": "The New York Times",
"category": "Media/news/publishing",
"id": "5281959998"
},
{
"name": "W New York - Times Square",
"category": "Hotel",
"id": "107574351937"
},
{
"name": "The New York Times Crossword Puzzle",
"category": "Community",
"id": "230891537029840"
},
{
"name": "The New York Times Travel Show",
"category": "Company",
"id": "135183981456"
},
{
"name": "InterContinental New York Times Square",
"category": "Travel/leisure",
"id": "225795063575"
},
{
"name": "Well | The New York Times",
"category": "Media/news/publishing",
"id": "181548405298864"
},
...
}

对于大多数大公司,您可能会认为列表中的第一个ID是正确的页面。你可以通过查找每个ID来进行检查,如下所示:

https://graph.facebook.com/5281959998

您将在响应中看到两个相关字段:websitelikes

点赞会显示页面的粉丝数量(你可能会认为粉丝最多的页面是正确的页面),网站会提供公司指定的网站URL。

最新更新