Skip to content

Instantly share code, notes, and snippets.

@giacbrd
giacbrd / tweetdownload.py
Last active August 29, 2022 06:00
A script for downloading (crawling) tweets by their IDs. A useful tool for creating datasets of tweets, as requested in popular research challenges on Twitter data (e.g., SemEval, #Microposts and TREC Microblog Track)
#!/usr/bin/env python
# encoding: utf-8
"""A script for downloading (crawling) tweets by their IDs.
A useful tool for creating datasets of tweets, as requested in popular research challenges on Twitter data
(e.g., SemEval, #Microposts and TREC Microblog Track).
It requires Twython (it optionally requires bz2file for compression).
This code is in https://gist.github.com/giacbrd/b996cfe2f1d24752f23bd119fdd678f2"""
__author__ = 'Giacomo Berardi <giacbrd.com>'