Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeffreymorganio/ruby-twitter-tools

Ruby command line tools for processing Twitter data.
https://github.com/jeffreymorganio/ruby-twitter-tools

Last synced: 6 days ago
JSON representation

Ruby command line tools for processing Twitter data.

Awesome Lists containing this project

README

        

# 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](http://geojson.org/) 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](http://geojson.io) and [visualised by GitHub](https://help.github.com/articles/mapping-geojson-files-on-github/).