For a given fandom in a certain medium, this function gives the URL of its story page.

getUrl(story, type, max.entries = NA)

Arguments

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?

Value

returns a list with 2 entries the URL of the fandom page as a string max.entries

Examples

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 #>