getTitles: Get url of Specific Story to be Scraped

Description Usage Arguments Value Examples

View source: R/getTitles.R

Description

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

Usage

1
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

1
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"))

ekmaus19/absentfan documentation built on Nov. 20, 2019, 3:20 a.m.