Export Twitter list to CSV
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib Handle NullObject issues by calling to_s explicitly. Nov 4, 2014
spec Update twitter gem dependency Feb 12, 2014
.gitignore ignore cdv files that accumulate from using the library Mar 7, 2013
.rspec continue implementation of separate classes to handle twitter lists a… Mar 6, 2013
.ruby-gemset update docs and preparing for gem packaging Aug 14, 2013
.ruby-version Clean up gem references Oct 10, 2014
Gemfile Clean up gem references Oct 10, 2014
Gemfile.lock Update twitter gem dependency Feb 12, 2014
LICENSE.md Clean up gem references Oct 10, 2014
README.md Continuing move to pass twitter keys in, in order to make more gem fr… Sep 13, 2013
twexport.gemspec Grab the website/url from the right place. Nov 4, 2014




A Ruby library for bulk exporting Twitter user profile information. Currently supports Twitter Lists and web pages with links to twitter users. The information is saved to CSV file.


  • Ruby (developed and tested on 1.9.3 and up)


Install via RubyGems:

gem install twexport



With a command line

$ irb
 > require 'twexport'

To export a Twitter List, use a combination of username and list name

twexport = Twexport::TwitterList.new(:screen_name => "twitter", :list_slug => "team", 
  :consumer_key => "", 
  :consumer_secret => "", 
  :access_token => "", 
  :access_token_secret => "")

or use a list id

twexport = Twexport::TwitterList.new(:list_id => 2031945, 
  :consumer_key => "", 
  :consumer_secret => "", 
  :access_token => "", 
  :access_token_secret => ""))

To export information for users listed in a web page

twexport = Twexport::WebPage.new(:url => "http://techcrunch.com/about/", 
  :consumer_key => "", 
  :consumer_secret => "", 
  :access_token => "", 
  :access_token_secret => "")

Other libraries of interest

t - A command-line power tool for Twitter