Learn R Programming

vosonSML (version 0.35.1)

Collect.thread.mastodon: Collect posts data from mastodon threads

Description

Collects public posts for one or more specified mastodon conversation threads and structures the data into a dataframe with the class names "datasource" and "mastodon".

Usage

# S3 method for thread.mastodon
Collect(
  credential,
  endpoint,
  threadUrls,
  ...,
  writeToFile = FALSE,
  verbose = TRUE
)

Value

A tibble object with class names "datasource" and "mastodon".

Arguments

credential

A credential object generated from Authenticate with class name "mastodon".

endpoint

API endpoint.

threadUrls

Character vector. Mastodon thread post urls to collect data from.

...

Additional parameters passed to function. Not used in this method.

writeToFile

Logical. Write collected data to file. Default is FALSE.

verbose

Logical. Output additional information about the data collection. Default is TRUE.

Examples

Run this code
if (FALSE) {
# post urls to collect threads from
threadUrls <- c("https://mastodon.social/@xxxxxx/xxxxxxxxx")

mastodonData <- Authenticate("mastodon") |>
  Collect(threadUrls = threadUrls, writeToFile = TRUE)
}

Run the code above in your browser using DataLab