scrape_groups_by_category: Scrape groups by category

Description Usage Arguments Value Examples

View source: R/scrape_data.R

Description

Get posts and all the replies to the posts from groups of a category by entering category name or URL

Usage

1
scrape_groups_by_category(cat, post_number_per_group = NULL, ...)

Arguments

cat

The category name (lower case, replace space with -) or category URL

post_number_per_group

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

...

optional arguments to FUN.

Value

A data frame

Examples

1
2
3
4
## Get the posts data of groups whose names starting with the letter "a" and "z"
scrape_groups_by_category(cat = "health-promotion", post_number_per_group = 1)
cat_url = "https://patient.info/forums/categories/health-promotion-17"
scrape_groups_by_category(cat = cat_url, post_number_per_group = 1)

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