将数据从Linkedin URL导入到Google Sheet

时间:2019-05-22 13:47:49

标签: google-apps-script google-sheets spreadsheet google-sheets-api

我们在LinkedIn上建立了一个小的有机内容策略。我们会说,我们采访了20个人,每个人都以有机方式将视频发布到了他的LinkedIn帐户。

是否可以自动检索每个视频的点赞,评论和观看次数,并将数据插入Google表格中适合每个人的单元格中?

是否可以使用超度量?还是您有提示/建议?

我尝试使用importxmlimporthtml;list

=IMPORTXML("www.linkedin.com/feed/update/urn:li:ugcPost:6535053243351867393/";"//*[@class='social-details-social-counts__item']") =IMPORTHTML("https://www.linkedin.com/feed/update/urn:li:ugcPost:6535053243351867393/";"list";1)

这两个都不起作用。

我收到错误消息:

  

“无法提取网址”

1 个答案:

答案 0 :(得分:1)

tl; dr:答案是“否”。

LinkedIn不希望共享数据(它归Microsoft所有)。例如,他们的robots.txt文件开始:

 # Notice: The use of robots or other automated means to access LinkedIn without
 # the express permission of LinkedIn is strictly prohibited.
 # See https://www.linkedin.com/legal/user-agreement.
 # LinkedIn may, in its discretion, permit certain automated access to certain LinkedIn pages,
 # for the limited purpose of including content in approved publicly available search engines.
 # If you would like to apply for permission to crawl LinkedIn, please email whitelist-crawl@linkedin.com.
 # Any and all permitted crawling of LinkedIn is subject to LinkedIn's Crawling Terms and Conditions.
 # See http://www.linkedin.com/legal/crawling-terms.

User-agent: Googlebot下:

Disallow: /feed/update/