Skip to content

Run a script to save tweets on a term to a MongoDB collection

Notifications You must be signed in to change notification settings

pselle/search-and-save

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search and Save

This project opens the Twitter API stream and saves each tweet into a mongo database as the data comes in. N.B. this is not ALL tweets, but a sample, as per the Twitter API.

The data in the database dump began collection on May 1 at 1:43pm, and ended May 4 at 10am. It contains >26k records containing the #talkpay hashtag.

This project is forked from and based on tweet-collector.

Usage

This app was deployed to Digital Ocean using Dokku, a Docker-powered Heroku-like interface. To run locally:

  1. npm install dependencies
  2. Update env.js.sample to contain your API information and remove the .sample ending
  3. Ensure MongoDB is running on your computer
  4. Run node getTweets.js to run the program

About

Run a script to save tweets on a term to a MongoDB collection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%