Ruby command line tools for processing Twitter data.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
extract-hashtags.rb
extract-mentions.rb
tweets2geojson.rb

README.md

Twitter Tools

A collection of Ruby command-line utilities for processing Twitter data in JSON format.

extract-hashtags.rb

A command-line utility that reads tweets in JSON format from the standard input and outputs the hashtags in the tweets on the standard output.

Usage

cat tweets.json | ./extract-hashtags.rb > hashtags.txt

extract-mentions.rb

A command-line utility that reads tweets in JSON format from the standard input and outputs the user mentions in the tweets on the standard output.

Usage

cat tweets.json | ./extract-mentions.rb > mentions.txt

tweets2geojson.rb

A command-line utility that reads tweets in JSON format from the standard input and outputs a GeoJSON feature collection on the standard output. Each geocoded tweet is represented by a point feature in the GeoJSON output.

Usage

cat tweets.json | ./tweets2geojson.rb > tweets.geojson

The tweets.geojson output file can be imported into tools such as geojson.io and visualised by GitHub.