Searching on social media
We will discuss how to use the package SocialMediaMineR
in R, which would allow us to consider a few URLs and learn about the reach of those URLs in various social media websites. This package can get us details such as number of likes, shares, and comments on social media websites such as Facebook, Twitter, LinkedIn, Pinterest, reddit, and a few others. This package also has functions for pulling data specific to individual social networking sites.
We need to install the package and load it to the R environment, which can be done using the following code:
install.packages("SocialMediaMineR") library(SocialMediaMineR)
After loading the package using the function library
, we will proceed with using the various functions of the package. Let's start with the function get_facebook
. This function will search for the mentioned URL in the social networking site Facebook
, and it will return the mentioned URL; the normalized URL; and the number of Facebook shares, likes, comments...