scrape_one_group: Scrape one group

Description Usage Arguments Value Examples

View source: R/scrape_data.R

Description

Get all the posts containing all the replies to those posts from one group by entering its url.

Usage

1
2
scrape_one_group(group_url, random_post_number = NULL,
  random_seed = NULL, ...)

Arguments

group_url

URL to the page to scrape.

random_post_number

The number of random posts to scrape. Default is NULL, which means scrape the total number of posts.

random_seed

A random number used to set the random seed to reproduce the work.

...

optional arguments to FUN.

Value

A data frame

Examples

1
2
3
## get the data of 5 random posts from the group "Angiotensin II Receptor Blockers"
group_url = "https://patient.info/forums/discuss/browse/angiotensin-ii-receptor-blockers-3037"
scrape_one_group(group_url = group_url, random_post_number = 5)

healthforum documentation built on Oct. 3, 2019, 9:04 a.m.