getUrl.Rd
For a given fandom in a certain medium, this function gives the URL of its story page.
getUrl(story, type, max.entries = NA)
story | Which Fandom would you like the URL for? |
---|---|
type | Which type of media? Must be one of the following ("anime", "book", "cartoon", "comic", "game", "misc", "tv") |
max.entries | How many Entries to scrape? |
returns a list with 2 entries the URL of the fandom page as a string max.entries
getUrl("Zoolander","movie")#> $url #> [1] "https://www.fanfiction.net/movie/Zoolander/" #> #> $max.entries #> [1] NA #>getUrl("Kingdom Hearts","game", max.entries=10)#> $url #> [1] "https://www.fanfiction.net/game/Kingdom-Hearts/" #> #> $max.entries #> [1] 10 #>