A short guide to collecting Twitter data and constructing networks for analysis with VOSONDash.
This guide provides a practical demonstration for collecting Twitter data and constructing networks, using VOSON Lab’s interactive R/Shiny app VOSONDash.
The GitHub page provides instructions to install and run VOSONDash. More information on features can be accessed in the VOSONDash Userguide(Borquez et al. 2020).
Twitter collection require authentication with OAuth1.0
API keys, provided via Twitter Developer account. Simply, enter the fields in the API Keys
window in VOSONDash. The token can be saved to disk for future use.
In this example, data were collected on 6 December 2021 and include 200 recent tweets with the hashtags #auspol and #COVID-19 (Fig. 1).
VOSONDash – via vosonSML
– provides four types of Twitter networks for analysis:
Activity networks – where nodes represent tweets and edge types are: replies, retweets and quoted retweets. In this example, there are 225 nodes (excluding isolates) and 200 edges (including multiple edges and loops).
Actor networks – where nodes represent users who have tweeted, or else are mentioned or replied to in tweets. Edges represent interactions between Twitter users, and an edge attribute indicates whether the interaction is a mention, reply, retweet, quoted retweet or self-loop. In this example, there are 212 nodes and 213 edges (including multiple edges and loops).
Label attribute
, we can observe hashtags and handles used in those tweets.Label attribute
option displays terms in network visualisation.To learn more about VOSONDash network and text analysis features, see our previous post Analysing online networks with VOSONDash.
Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".
For attribution, please cite this work as
Borquez (2021, Nov. 25). VOSON Lab Code Blog: Collecting Twitter data with VOSONDash. Retrieved from https://vosonlab.github.io/posts/2021-11-25-collecting-twitter-data-with-vosondash/
BibTeX citation
@misc{borquez2021collecting, author = {Borquez, Francisca}, title = {VOSON Lab Code Blog: Collecting Twitter data with VOSONDash}, url = {https://vosonlab.github.io/posts/2021-11-25-collecting-twitter-data-with-vosondash/}, year = {2021} }