Skip to content

Sample Project using Python Flask to query Twitter and save results in Mongo

Notifications You must be signed in to change notification settings

richardadalton/example_flask_twitter_mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongo logo

Flask/Twitter/Mongo Example

Background

This project allows the user to search twitter for existing tweets, or capture new tweets as they happen. The results are stored in Mongo, subsequent queries for the same keyword pull from mongo.

The site is build using the python flask framework.

Installation

  1. git clone this repo.

  2. sudo pip3 install -r requirements.txt

  3. Create a mongo database, e.g. on mlab.com

  4. Create environment variables for twitter credentials and mongo uri.

  • CONSUMER_KEY
  • CONSUMER_SECRET
  • OAUTH_TOKEN
  • OAUTH_TOKEN_SECRET
  • MONGO_URI

About

Sample Project using Python Flask to query Twitter and save results in Mongo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published