Skip to content

chrisfleisch/tweet-storm

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Setup

  1. Change to w205 user:
su w205
  1. Clone code repo:
git clone https://github.com/chrisfleisch/w205-labs.git
  1. Move to exercise 2 dir:
cd w205-labs/exercise_2
  1. Switch back to root, using python 2.7.3 install requirements, then switch back to w205:
exit
cd w205-labs/exercise_2
pip install -r requirements.txt
su w205
  1. Create database (may take a little while to complete):
cd scripts
python create_db.py
  1. Create table:
python create_table.py

Get streaming

  1. Input your twitter credentials at the top of tweets.py:
cd ../
vim extweetwordcount/src/spouts/tweets.py
  1. Run the stream
cd extweetwordcount
sparse run

When you have enough data, hit Contol-C to stop the stream

Results:

  1. Move to scripts directory:
cd ../scripts
  1. Final results:
python finalresults.py
python finalresults.py hello
  1. Histogram:
python histogram.py 10,12

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published