-
Notifications
You must be signed in to change notification settings - Fork 14
/
methodshub.qmd
95 lines (58 loc) · 3.87 KB
/
methodshub.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
title: rtoot - Collecting and Analyzing Mastodon Data
format:
html:
embed-resources: true
gfm: default
---
## Description
<!-- - Provide a brief and clear description of the method, its purpose, and what it aims to achieve. Add a link to a related paper from social science domain and show how your method can be applied to solve that research question. -->
An implementation of calls designed to collect and organize Mastodon data via its Application Program Interfaces (API), which can be found at the following URL: <https://docs.joinmastodon.org/>.
## Keywords
<!-- EDITME -->
* Mastodon
* Decentralized Social Network
* Social Media Data
## Science Usecase(s)
<!-- - Include usecases from social sciences that would make this method applicable in a certain scenario. -->
<!-- The use cases or research questions mentioned should arise from the latest social science literature cited in the description. -->
Although not using this package, the data from the Mastodon API has been used in various social science publications on platform migration (e.g. [La Cava et al. 2023](https://doi.org/10.1038/s41598-023-48200-7)) and online network formation (e.g. [La Cava, et al. 2021](https://doi.org/10.1007/s41109-021-00392-5)).
## Repository structure
This repository follows [the standard structure of an R package](https://cran.r-project.org/doc/FAQ/R-exts.html#Package-structure).
## Environment Setup
With R installed:
```r
install.packages("rtoot")
```
<!-- ## Hardware Requirements (Optional) -->
<!-- - The hardware requirements may be needed in specific cases when a method is known to require more memory/compute power. -->
<!-- - The method need to be executed on a specific architecture (GPUs, Hadoop cluster etc.) -->
## Input Data
<!-- - The input data has to be a Digital Behavioral Data (DBD) Dataset -->
<!-- - You can provide link to a public DBD dataset. GESIS DBD datasets (https://www.gesis.org/en/institute/digital-behavioral-data) -->
No applicable.
## Sample Input and Output Data
<!-- - Show how the input data looks like through few sample instances -->
<!-- - Providing a sample output on the sample input to help cross check -->
As a data collection software, this tool does not have any "sample input".
The output from this software is a [standard tibble](https://cran.r-project.org/package=tibble) of data collected from the Mastodon API.
## How to Use
<!-- - Providing HowTos on the method for different types of usages -->
<!-- - Describe how the method should be used, including installation, configuration, and any specific instructions for users. -->
Please refer to the ["Introduction to rtoot"](https://gesistsa.github.io/rtoot/articles/rtoot.html) for a comprehensive introduction of the package.
In general, one should first conduct the authentication to obtain an access token. This can be done with the provided function `auth_setup()`. For more information, please refer to the documentation on [authentication](https://gesistsa.github.io/rtoot/articles/auth.html).
However, it is also possible to use some of functions with authentication. For example, it is possible to obtain the public timeline of a Mastodon instance, e.g. emacs.ch.
```{r}
library(rtoot)
get_timeline_public(instance = "emacs.ch")
```
Other functions, e.g. `get_timeline_hashtag()`, `get_account_statuses()` require authentication.
## Contact Details
Maintainer: David Schoch <david@schochastics.net>
Issue Tracker: [https://github.com/gesistsa/rtoot/issues](https://github.com/gesistsa/rtoot/issues)
## Publication
1. Schoch, D., & Chan, C. H. (2023). Software presentation: Rtoot: Collecting and analyzing Mastodon data. Mobile Media & Communication, 11(3), 575-578. https://doi.org/10.1177/20501579231176678
<!-- ## Acknowledgements -->
<!-- - Acknowledgements if any -->
<!-- ## Disclaimer -->
<!-- - Add any disclaimers, legal notices, or usage restrictions for the method, if necessary. -->