get_thread_links: Get thread links in section

Description Usage Arguments Value Examples

View source: R/get_thread_links.R

Description

Returns the links of threads within a section

Usage

1
2
3
4
5
6
get_thread_links(
  suffix,
  cut_off = "2000-01-01",
  delay = TRUE,
  pure_suffix = FALSE
)

Arguments

suffix

A character string containing a sub-section's suffix (which can be obtained using get_sub_sections). Suffixes need to start with /.

cut_off

A character string containing the date at which the latest post in the thread should had been posted on. Has to be in the format YYYY-MM-DD. Defaults to "2000-01-01".

delay

flashback.org's robots.txt-file asks for putting a five second delay between each iteration. You can deliberately ignore this by setting delay = FALSE. Note that THIS IS NOT RECOMMENDED!

title

A logical vector. If TRUE, the thread title is returned as well.

Value

A character vector containing the links. If title = TRUE, a tibble which contains the thread's title and URL.

Examples

1
get_thread_links(suffix = "/f245", cut_off = "2020-05-01", title = TRUE, delay = TRUE)

fellennert/flashbackscrapR documentation built on Sept. 10, 2021, 4:15 p.m.