Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

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

readme.md

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

Releases

No releases published

Packages

No packages published