Export Twitter list to CSV
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.ruby-gemset
.ruby-version
Gemfile
Gemfile.lock
LICENSE.md
README.md
Rakefile
twexport.gemspec

README.md

twexport

Description

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.

Requirements

  • Ruby (developed and tested on 1.9.3 and up)

Installation

Install via RubyGems:

gem install twexport

Configuration

Usage

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 => "")
twexport.save('team.csv')

or use a list id

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

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 => "")
twexport.save('tcwriters.csv')

Other libraries of interest

t - A command-line power tool for Twitter