Learn R Programming

RedditExtractoR (version 2.1.5)

reddit_content: Extract data attributes

Description

Extract data attributes

Usage

reddit_content(URL, wait_time = 2)

Arguments

URL

a string or a vector of strings with the URL address of pages of interest

wait_time

wait time in seconds between page requests. 2 by default and it is also the minimum (API rate limit).

Value

A data frame with structure / position of the comment with respect to other comments (structure), ID (id), post / thread date (post_date), comment date (comm_date), number of comments within a post / thread (num_comments), subreddit (subreddit) upvote proportion (upvote_prop), post /thread score (post_score), author of the post / thread (author), user corresponding to the comment (user), comment score (comment_score), controversiality (controversiality), comment (comment), title (title), post / thread text (post_text), URL referenced (link) domain of the references URL (domain)

Examples

Run this code
# NOT RUN {
example_attr = reddit_content(URL="reddit.com/r/gifs/comments/39tzsy/whale_watching")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab