getTitles.absentfan Helper function of getChapter iterating through all entry titles in fandom listing in search of title queried by user.

getTitles(returns)

Arguments

returns

A list generated by getPagesTitle.absentfan 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.

Value

A list including a url (of fanfiction.net) and the href of the story being queried.

Examples

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