This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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>' |