Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jeffreymorganio/ruby-twitter-tools
- Owner: jeffreymorganio
- License: mit
- Created: 2015-02-23T16:57:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-07T19:19:21.000Z (almost 4 years ago)
- Last Synced: 2023-03-22T19:55:54.339Z (almost 2 years ago)
- Language: Ruby
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/).