tumblrRead: Get Tumblr posts from a given tumblog

Description Usage Arguments Value Examples

Description

Get Tumblr posts from a given tumblog

Usage

1
2
3
4
  tumblrRead(url, start = NULL, num = NULL, type = NULL,
    id = NULL, filter = NULL, tagged = NULL,
    chrono = FALSE, search = NULL, user = NULL,
    state = NULL, verbose = FALSE)

Arguments

url

URL of the tumblog to read, without "http://" or trailing slash. If "dashboard", read from the dashboard.

start

offset to start from (defaults to 0).

num

number of posts to return (defaults to 20, maximum is 50).

type

type of posts to return ("text", "quote", "photo", "link", "chat", "video", "audio", defaults to NULL for all posts).

id

ID of a specific post to return, supercedes start, num, and type.

filter

"text" for plain text, "none" for no post-processing (defaults to NULL for HTML).

tagged

posts with this tag, newest first (defaults to NULL).

chrono

used with tagged, TRUE to get oldest posts first (defaults to FALSE).

search

query to search for in posts (defaults to NULL).

user

list with values email and password, to use with state (defaults to NULL).

state

"draft", "queue", "submission" posts, requires user to be set (defaults to NULL).

verbose

boolean for more verbosity, passed to RCurl

Value

list of posts matching the request.

Examples

1
2
3
4
5
6
7
8
9
url <- "demo.tumblr.com"
tumblrRead(url)
tumblrRead(url, start = 2, num = 1)
tumblrRead(url, id = 459009076)
tumblrRead(url, tagged = "funny", filter = "none")

url2 <- "(YOU).tumblr.com"
user <- list(email = "XXXXXXXX", password = "XXXXXX")
tumblrRead(url2, user = user, state = "draft")

fcocquemas/rtumblr documentation built on May 16, 2019, 12:08 p.m.