Peruse Twitter, maybe discover something!
Twitter Peruser relies on a couple of external libraries and databases:
- TwitterAPI
- Redis
To install:
-
Install TwitterAPI:
pip install TwitterAPI
-
Install Redis:
wget http://download.redis.io/redis-stable.tar.gz tar xvzf redis-stable.tar.gz cd redis-stable make
-
Start the Redis server:
redis-server
-
In a new terminal tab, test Redis (should expect a PONG response):
redis-cli ping
-
Install wordcloud:
pip install wordcloud
-
Copy keys.template and call it keys.py. Replace bracketed values in that file with your secret Twitter keys
-
Run example which uses the module:
python peruseDriver.py [query in quotes] [number of tweets to be used]