Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 674 Bytes

File metadata and controls

27 lines (16 loc) · 674 Bytes

Twitter Representative Sample

Set these environment variables in the following form before running

export TWITTER_QUERY=sharks
export TWITTER_DBNAME=sharks
export TWITTER_DATE='Jun 21 Aug 21'
export MONGO_CLIENT=<mongo client address>

Install from requirements.txt with:
pip install -r requirements.txt

docker run -it -v /home/ubuntu/data:/data/db -d mongo mongod --auth

or without authentications

docker run -it -v /home/ubuntu/data:/data/db -d mongo

or with none default port

docker run -it -v /home/ubuntu/data:/data/db -p 27042:27017 -d mongo

Then from daily_twitter_sample directory run:
python core.py