The project’s goal is to visualize the relationship between major cryptocurrencies’ price with their twitter mentions in real time. It will be interesting to see if the price movement precedes or follows twitter mentions.
https://www.youtube.com/watch?v=sz6n_7QhwS0
http://3.133.137.61/public/dashboards/ywzotGg9jNlg975O15mcAGNQnWbWhYpJPf23KAnw?org_slug=default
- Docker
- Cassandra
- Modify cassandra.yaml to your host ip
- Kafka
- Faust
- Python
- Tweepy
- Twitter API Key
- CompareCrypto API Key
- Start ec2 instance from Redash AMI (t2.xlarge)
- Start Kafka: docker-compose -f docker-compose-cryptotweetmap.yml up
- Start Cassandra: ./apache-cassandra-4.0.3/bin/cassandra
- Start Faust Twitter Worker: python3 tw_worker.py worker -l info
- Start Faust Coin Worker: python3 coin_worker.py worker -l info --web-port 6067
- (Optional) Test workers: python3 tw_worker.py send twitter '{"uuid": "cb72dea4-c5fd-11ec-975d-0242ac1c0002", "coin": "ETH", "time": 1651046086.2908614}'
- (Optional) Test workers: python3 coin_worker.py send coinbase '{"uuid": "cb72dea4-c5fd-11ec-975d-0242ac1c0002", "coin": "BTC", "time": 1651046086.2908614, "quote": 38342.44}'
- Start collecting twitter data: python3 cryptotweet.py
- Start collecting quotes: python3 cryptoprice.py
- Configure Redash: http://your_ec2_public_ip/
- Useful tutorial by Redash: https://www.youtube.com/watch?v=Yn3_QDk2qQM&t=186s
by: Jack Tsu