-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy path0x_283 rtoot.R
More file actions
20 lines (14 loc) · 644 Bytes
/
0x_283 rtoot.R
File metadata and controls
20 lines (14 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# use rtoot to access mastodon
# install.packages("rtoot")
library(rtoot)
# authenticate to a mastodon server
auth_setup(instance = "mastodon.social", type = "public")
# get list of federated instances
myMastodonSocialToken <- "get a token from https://instances.social/api/token"
fedis <- get_fedi_instances(n = 130,
token = myMastodonSocialToken)
# looking to do some textmining?
publictoots <- get_timeline_public(limit = 13,
instance = "mastodon.social")
linkedinHashtags <- get_timeline_hashtag(hashtag = "linkedin",
instance = "mastodon.social")