Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.

About

Ruby command line tools for processing Twitter data.

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.