Description Usage Arguments Value Examples
Get posts and all the replies to the posts from groups of a category by entering category name or URL
1 | scrape_groups_by_category(cat, post_number_per_group = NULL, ...)
|
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. |
A data frame
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.