parler_hashtag: Get Parler Posts by Hashtag

Description Usage Arguments Details Value Examples

View source: R/parler_hashtag.R

Description

Gets Parler Posts by hashtag

Usage

1
2
3
4
5
6
7
8
parler_hashtag(
  hashtag,
  output_format = "data.frame",
  flatten_sep = " || ",
  parse_numbers = TRUE,
  verbose = FALSE,
  timeout = 600
)

Arguments

hashtag

Parler user handle.

output_format

Options include: data.frame (flattened, one row per post), list, and json (raw json file)

flatten_sep

Separator used to flatten nested variables (e.g. multiple badges per user). Defaults to ||

parse_numbers

Whether to parse numbers from Parler's format to numeric (e.g. from 16k to 16000)

verbose

Whether to print additional information while scraping

timeout

Whether to stop the scraping after an amount of timeout seconds.

Details

Warning: ...

Value

A dataframe with one row for each post and a column for each variable.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
out <-
  parler_hashtag(hashtag  = "nocovidvaccine",
                 output_format = "data.frame",
                 flatten_sep = " || ",
                 parse_numbers = TRUE,
                 verbose = TRUE)

print(colnames(out))

## End(Not run)

schliebs/parleR documentation built on March 28, 2021, 7:34 p.m.