get_page: Get Page Content

Description Usage Arguments Value Examples

View source: R/main.R

Description

Get Page Content

Usage

1
get_page(link, user_agent = NA)

Arguments

link

Character string with the url of the Reddit page from which to extract content.

Value

A character string containing the json data from the Reddit API call

Examples

1
2
3
4
get_page("http://www.reddit.com/")
get_page("http://www.reddit.com/r/politics/")
get_page("https://www.reddit.com/r/funny/comments/4xuzyl/")
get_page("https://www.reddit.com/r/funny/comments/4xuzyl/usain_bolt_celebrating_his_olympic_victory_with/")

bensoltoff/redditR documentation built on May 11, 2017, 7:11 a.m.