get_linkedin: Retrieves the share count of URLs on LinkedIn

View source: R/get_linkedin.R

get_linkedinR Documentation

Retrieves the share count of URLs on LinkedIn

Description

Takes a URL and returns a data frame with the original URL and the number of shares on LinkedIn. The function accepts the optional variable sleep.time (default=0) to avoid hitting API limits (if implemented). Use sleep.time to define the number of seconds the function will wait before proceeding to the next URL. If the URLs are shortened, you will have to first resolve them using the function get_url().

Usage

get_linkedin(links, sleep.time = 0)

Arguments

links

URL to be tracked on LinkedIn

sleep.time

Number of seconds the function will wait before proceeding to the next URL (optional)

Value

Returns the original URL and the number of shares on LinkedIn.

Author(s)

Marco Bastos

References

Information about the LinkedIn API is available at <https://developer.linkedin.com/apis>

Examples

get_linkedin("http://www.nytimes.com/")

toledobastos/SocialMediaMineR documentation built on Nov. 28, 2024, 10:24 p.m.