View source: R/Collect.search.mastodon.R
Collect.search.mastodon | R Documentation |
This function collects posts based on search terms and structures the data into a dataframe with
the class names "datasource"
and "mastodon"
.
## S3 method for class 'search.mastodon'
Collect(
credential,
endpoint,
hashtag = NULL,
instance = NULL,
local = FALSE,
numPosts = 100,
anonymous = TRUE,
retryOnRateLimit = TRUE,
writeToFile = FALSE,
verbose = FALSE,
...
)
credential |
A |
endpoint |
API endpoint. |
hashtag |
Character string. Specifies a mastodon query to search on e.g #hashtag. Set to |
instance |
Character string. Server to collect posts from. Default is |
local |
Logical. Search the local server or global timeline. |
numPosts |
Numeric. Specifies how many tweets to be collected. Default is |
anonymous |
Logical. Collect public posts without authenticating. Default is |
retryOnRateLimit |
Logical. When the API rate-limit is reached should the collection wait and resume when it resets. Default is |
writeToFile |
Logical. Write collected data to file. Default is |
verbose |
Logical. Output additional information. Default is |
... |
Arguments passed on to
|
A tibble object with class names "datasource"
and "mastodon"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.