Skip to content

rsmahabir/COVID19_Tweets_Dataset

Repository files navigation

COVID-19 Multilanguage Tweets Dataset

The repository contains an ongoing collection of tweet-IDs associated with the novel coronavirus (COVID-19). The dataset contains tweet-IDs dating back to January 22th, 2020. Twitter’s search API was used to gather historical tweets from multiple continents in multiple languages that containied a given keyword (i.e., coronavirus, virus, covid, ncov19, ncov2019). In order to comply with Twitter’s Terms of Service, only the tweet-IDs of the Tweets gathered are released for non-commercial research use only.

The paper associated with this dataset can be found here: Understanding the perception of COVID-19 policies by mining a multilanguage Twitter dataset

Data Organization

The tweet-IDs are organized by keywords as follows:

  • Tweet-ID files are stored in folders that indicate the keyword used (i.e., coronavirus, virus, covid, ncov19, ncov2019).
  • The Tweet-ID file is a .txt containsing individual Tweet-IDs stored as a comma-separated-list. The file names follow the naming convention of : [Keyword]_yyyy_mm_dd.txt (e.g., coronavirus_2020_01_22.txt contains the ids of tweets mentioning the keyword 'coronavirus' tweeted on January 22th, 2020).
  • Since the Twitter API returns tweets in UTC, all tweet-ID folder and file names are all in UTC as well.

Data Collection Process

  • Not all keywords were tracked from the very beginning. As news about the novel coronavirus spread, additional keywords were added to the search list. The keywords used for search tweets are: virus and coronavirus since 22 January, ncov19 and ncov2019 since 26 February, and covid since 7 March 2020.
  • Only tweets in English were collected from 22 January to 31 January 2020, after this time the algorithm collected tweets in all languages.
  • Our dataset does not capture every single tweet on Twitter relating to the keywords as our data retrieval is restricted by the Twitter API at 45,000 tweets every 15 minutes.
  • We notice that there are fewer tweets relating to the novel coronavirus present in our dataset in the first few weeks than in the following weeks. This can explained by the fact that our data collection involved tracking other keywords unrelated to the coronavirus during the first few weeks (other projects). This meant that the number of coronavirus-related tweets were limited at a fraction of the total API limit. Once unrelated keywords were removed from our search options, the limit of coronavirus-related tweets became the total API limit, hence resulting in more tweets in our dataset.
  • Our dataset is currently missing tweed-ID entries for Feb 06, 2020 and Feb 07, 2020. This data was lost due to technical errors. However, tweet data was retained and hence our statistics were not affected by this loss of tweet-IDs. We currently are working on retrieving the lost tweet-ID data.
  • We currently have some descriptive statistics about our dataset displayed in the paper associated with it. We are working on automatically updating these statistics with every update of the dataset.
  • Consider using tools such as the Hydrator and Twarc to rehydrate the tweet-IDs i.e. to fetch tweet data associated with the tweet-IDs using Twitter's API.
  • Tweets deleted after our initial collection may still be present in our dataset, but their details can no longer be retrieved by using Twitter's API.
  • We are working on publishing the estimates on the number of deleted tweets in our dataset.
  • Chen et al., 2020 has published a dataset, similar to ours, contatining tweet-IDs relating to the novel coronavirus. For those looking for an even larger dataset than ours, merging the two datasets is a valid option.

Hydrating Tweets

The Twitter API's rate limits pose an issue to fetch data from tweed-IDs. So, we recommended using Hydrator to convert the list of tweed-IDs, into a CSV file containing all data and meta-data relating to the tweets. Hydrator also manages Twitter API Rate Limits for you.

For those who prefer a command line interface over a GUI, we recommend using Twarc.

Using Hydrator

Follow the instructions on the Hydrator github repository.

Using Twarc (CLI)

Follow the instructions on the Twarc github repository.

  1. First follow instructions for installation.
  2. Then, obtain your Twitter API token (apply for a Twitter developer account).
  3. Configure twarc with your API token by following the instructions for configuration.
  4. Follow instructions in the Hydrate section. Hydrated tweets are stored in jsonl files.

Data Statistics

The following are as of 13 March, 2020. (v1)

Number of Tweets: 6,468,526.

Language Breakdown:

Language Percent of Tweets
English 63.45
Spanish 12.68
Portuguese 4.46
Bahasa 4.25
French 3.96
Italian 3.85
Thai 1.68
Japanese 1.35
German 0.78
Tagalog 0.72
Turkish 0.49
Catalan; Valencian 0.39
Dutch; Flemish 0.32
Hindi 0.28
Chinese 0.24
Lithuanian 0.16
Korean 0.15
Arabic 0.11
Other 0.69

Inquiries

For questions about the dataset, please contact Dr. Christian Lopez at [email protected], Dr. Caleb Gallemore at [email protected], or Malolan Vasu at [email protected].

Licensing

This dataset is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License (CC BY-NC-SA 4.0). By using this dataset, you agree to abide by the stipulations in the license, remain in compliance with Twitter’s Terms of Service, and cite the following manuscript:

Citation

Christian Lopez, Malolan Vasu, and Caleb Gallemore (2020) Understanding the perception of COVID-19 policies by mining a multilanguage Twitter dataset. arXiv:cs.SI/2003.10359,2020 https://arxiv.org/abs/2003.10359

References

Emily Chen, Kristina Lerman, and Emilio Ferrara. 2020. #COVID-19: The First Public Coronavirus Twitter Dataset. arXiv:cs.SI/2003.07372, 2020

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published