tropr (version 0.1.2)

trope_cache: Prepare cache for given tv trope urls

Description

Prepare cache for given tv trope urls

Usage

trope_cache(urls, depth = 1, trope_cache_dir = tempdir(),
  redirect_to_cache_dir = tempdir(), sleep = 0.5, filter_pattern = NULL,
  verbose = T)

Arguments

urls

url of tv trope pages

depth

a size of tree-depth of trope urls. If you set it as 1, then it will only fetch data of urls, and for 2, it will fetch both urls, and their children urls.

trope_cache_dir

a directory for trope data caching

redirect_to_cache_dir

a directory for redirect urls caching

sleep

wait time between queries

filter_pattern

a pattern to filter tv trope urls

verbose

verbosity option

Value

data.frame which contains statistics how it constructs cache

Examples

Run this code
library(tropr)

.urls <- c("http://tvtropes.org/pmwiki/pmwiki.php/Main/SenseiChan")

res <- trope_cache(.urls)

Run the code above in your browser using DataLab