Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcla1/tweet_collector
Simple program to help you collect tweets into a DB via the twitter streaming API
https://github.com/jcla1/tweet_collector
Last synced: about 1 month ago
JSON representation
Simple program to help you collect tweets into a DB via the twitter streaming API
- Host: GitHub
- URL: https://github.com/jcla1/tweet_collector
- Owner: jcla1
- License: mit
- Created: 2014-03-31T14:47:49.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-05T07:18:41.000Z (almost 11 years ago)
- Last Synced: 2024-06-21T03:14:38.469Z (7 months ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tweet collector
===============Use it to collect tweets from the [Twitter streaming API](https://dev.twitter.com/docs/api/1.1/post/statuses/filter).
## Usage
First you need API credentials for the streaming API. You can get those by creating a new Twitter App on the Application management screen. Put these credentials in a JSON file called `config.json`.
Then edit keepalive.sh and put in your DB credentials (tested with MySQL) in the env variable `DB_CREDENTIALS`.
Example: username:password@/dbname
If you're not on OSX remove the call to "caffeinate".
The script will run the collector, that saves tweets and users to the DB, and in case of an error, it will restart the process. Forever.