Tweet_collector
This project is aimed to help researchers to use Academic Research product track to collect tweets of their interest and analyze them.
Description
tweet_collector
Twitter forms a rich source of information for researchers interested in studying 'the public conversation'. The Academic Research product track is designed to serve the needs of the academic research community. It provides researchers with special levels of access to public Twitter data without any cost. This project is aimed to help researchers to use Academic Research product track to collect tweets of their interest and analyze them.
Table of Contents
About the Project
This project provides a set of guidelines + tool, to facilitate the process of collecting tweets and analysing them.
Date: Sep 2021
Researcher:
- Abby Waysdorf (a.s.waysdofr@uu.nl)
Research Software Engineer(s):
- Parisa Zahedi (p.zahedi@uu.nl)
- Roos Voorvaart (r.voorvaart@uu.nl)
Built with
- searchtweets-v2: It is a python package serves as a wrapper for the all Twitter API v2 search endpoints. We use this package to collect tweets.
- elasticsearch/kibana : The collected tweets are visualized using elasticsearch and kibana.
- docker
License
The code in this project is released under MIT License.
Getting Started
The followings are the main steps.
- Apply for Academic Research product track
- Setup the environment
- Search tweets
- Visualize tweets
Each step is elaborted in details in guideline folder.
Prerequisites
- 
To install and run this project locally, you need to have the following prerequisites installed. - Python 3.8
- Docker desktop
 
Installation
To get a local copy up and running follow these simple steps.
- Clone the repo:
git clone https://github.com/UtrechtUniversity/tweet_collector.git
- (Optional but recommended) Create and activate a virtual environment
   python -m venv [myenvname]
   source [myenvname]/bin/activate
- Create package file:
Navigate to tweet_collector folder and run:
poetry build
- Install package through pip:
pip install ./dist/[tweet_collector_version.whl]
Note: you should run it for the version you have in your dist folder.
Usage
If the installation through pip was followed:
- Make sure you are inside the virtual environment tweet_collector was installed in
- Run the tweet_collectorcommand to start collecting the tweets
- Run the tweet_collector_elasticcommand to visualise the results in Kibana.
Links
An overview of interesting links related to the project.
Contributing
Contributions are what make the open source community an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
To contribute:
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
Contact
Parisa Zahedi - (p.zahedi@uu.nl)
Project Link: https://github.com/UtrechtUniversity/tweet_collector
Acknowledgements
- Special thanks to Ton Smeele from Research IT team
- Special thanks to Sytse Groenwold from Research IT team