SocialMediaMineR-package: A Social Media Search and Analytic Tool

Description Details Author(s) Examples

Description

Search and analytic tool that takes one or multiple URL(s) and returns the information about the popularity and reach of the URL(s) on social media. It retrieves the number of shares, likes, pins, and hits on Facebook, Pinterest, StumbleUpon, LinkedIn, and Reddit.

Details

Package: SocialMediaMineR
Type: Package
Version: 0.4
Date: 2016-12-13
License: GPL (>= 2)

The function get_socialmedia() returns a data frame with the number of shares, likes, pins, and hits on Facebook, Pinterest, StumbleUpon, LinkedIn, and Reddit. The resulting data frame includes the following 15 columns:

url URL searched normalized_url URL returned fbk_shares number of Facebook shares fbk_likes number of Facebook likes fbk_comments number of Facebook comments fbk_total total number of hits on Facebook fbk_clicks number of Facebook clicks rdt_score Reddit score rdt_downs number of downs on Reddit rdt_ups number of ups on Reddit rdt_comments number of comments on Reddit lkn_shares number of LinkedIn shares stu_views number of StumbleUpon views pin_counts number of pins on Pinterest

The package also includes dedicated functions to each social network platform. The function get_facebook() performs a search on Facebook, get_linkedin on LinkedIn, get_pinterest() on Pinterest, get_reddit() on Reddit, and get_stumbleupon() on StumbleUpon. The function get_url() resolves shortened URLs and can be used with the aforementioned functions.

Author(s)

Marco Bastos

Maintainer: Marco Bastos <marco@toledobastos.com>

Examples

1
get_socialmedia("http://www.nytimes.com/")

Example output

Error in function (type, msg, asError = TRUE)  : 
  Failed to connect to graph.facebook.com port 80: Connection refused
Error : lexical error: invalid char in json text.
                                       Error in function (type, msg, a
                     (right here) ------^

Error in function (type, msg, asError = TRUE)  : 
  Failed to connect to buttons.reddit.com port 80: Connection refused
Error : lexical error: invalid char in json text.
                                       Error in function (type, msg, a
                     (right here) ------^

Error in function (type, msg, asError = TRUE)  : 
  Failed to connect to www.linkedin.com port 443: Connection refused
Error : lexical error: invalid char in json text.
                                       Error in function (type, msg, a
                     (right here) ------^

Error in function (type, msg, asError = TRUE)  : 
  Failed to connect to www.stumbleupon.com port 80: Connection refused
Error : lexical error: invalid char in json text.
                                       Error in function (type, msg, a
                     (right here) ------^

Error in function (type, msg, asError = TRUE)  : 
  Failed to connect to api.pinterest.com port 80: Connection refused
Error : lexical error: invalid char in json text.
                                       Error in function (type, msg, a
                     (right here) ------^

[1] "Query execution time: 0 minutes"
  url normalized_url fbk_shares fbk_comments rdt_score rdt_downs rdt_ups
1   0              0          0            0         0         0       0
  rdt_comments lkn_shares stu_views pin_counts
1            0          0         0          0

SocialMediaMineR documentation built on May 29, 2017, 11:44 p.m.