Skip to content

tweet2csv is a script written in Python to query Twitter's search API and dump the results to a csv.

Notifications You must be signed in to change notification settings

bicknoyle/tweet2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

tweet2csv

tweet2csv is a script written in Python to query Twitter's search

API and output the results as a CSV

Requirements

tweet2csv requires Tweepy. The easiest way to install Tweepy is:

$ easy_install tweepy

Altnerative installation methods can be found here

Example Usage

Usage typically follows this format:

$ python tweet2csv.py [QUERY]

So get a list tweets mentioning @user:

$ python tweet2csv.py "@user"

Or, get a list of tweets mentioning @user and #hashtag:

$ python tweet2csv.py "@user #hashtag"

Or, just get usernames of people saying "exact phrase":

$ python tweet2csv.py "'exact phrase'" -c from_user

See Using the Twitter Search API for more examples of queries that can be run against Twitter's Search API

Resources

About

tweet2csv is a script written in Python to query Twitter's search API and dump the results to a csv.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages