getPagesTitle.absentfan Helper function of getChapter to get the total number of pages to iterate through if the catalogue of entries is multiple pages.

getPagesTitle(returns)

Arguments

returns

A list produced by getUrlTitle.absentfan including the full url of the associated fandom and the title of the fanfic being retrieved.

Value

A list including noPages (bool whether there are multiple pages of entries to scrape), page_use (href, if needed), page_num (total number of pages to iterate), url, and story title.

Examples

getPagesTitle(list(url="https://www.fanfiction.net/book/Harry-Potter/", title="Modern Marauders"))
#> $noPages #> [1] FALSE #> #> $page_use #> [1] "/book/Harry-Potter/?&srt=1&r=103&p=" #> #> $page_num #> [1] 11 #> #> $url #> [1] "https://www.fanfiction.net/book/Harry-Potter/" #> #> $title #> [1] "Modern Marauders" #>