View source: R/Collect.thread.mastodon.R
Collect.thread.mastodon | R Documentation |
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"
.
## S3 method for class 'thread.mastodon'
Collect(
credential,
endpoint,
threadUrls,
writeToFile = FALSE,
verbose = FALSE,
...
)
credential |
A |
endpoint |
API endpoint. |
threadUrls |
Character vector. Mastodon thread post urls to collect data from. |
writeToFile |
Logical. Write collected data to file. Default is |
verbose |
Logical. Output additional information about the data collection. Default is |
... |
Additional parameters passed to function. Not used in this method. |
A tibble
object with class names "datasource"
and "mastodon"
.
## Not run:
# post urls to collect threads from
threadUrls <- c("https://mastodon.social/@xxxxxx/xxxxxxxxx")
mastodonData <- Authenticate("mastodon") |>
Collect(threadUrls = threadUrls, writeToFile = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.