trope_cache: Prepare cache for given tv trope urls

Description Usage Arguments Value Examples

View source: R/data.R

Description

Prepare cache for given tv trope urls

Usage

1
2
3
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

1
2
3
4
5
6
7
library(tropr)

.urls <- c("http://tvtropes.org/pmwiki/pmwiki.php/Main/SenseiChan")
## Not run: 
res <- trope_cache(.urls)

## End(Not run)

zedoul/tropr documentation built on Aug. 19, 2019, 5:19 a.m.