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
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
Value
data.frame
which contains statistics how it constructs cache
Examples
Run this codelibrary(tropr)
.urls <- c("http://tvtropes.org/pmwiki/pmwiki.php/Main/SenseiChan")
res <- trope_cache(.urls)
Run the code above in your browser using DataLab