█████ ██████ ██ ██ ██ ████████ ███████ ██ ██ ████████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██████ ██ ████ ██ █████ ███ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██████ ███████ ██ ██ ███████ ██ ██ ██
This is an Ably GopherCon 2021 Hackathon entry based on Teletext.
Teletext was a protocol that allowed broadcasters to send text signals to televisions. This project is a similar concept, broadcasting tweet counts for a given hashtag in real time, via Ably's realtime API.
Visit the site at https://mighty-lake-60203.herokuapp.com to see the data in real time. The default display is for the keyword "google", due to this keyword reliably matching tweets every minute! (this search shows the equivalent data in Twitter).
The table automatically updates in real time: a new entry will be added at the top as each new minute passes, with data from the last two hours being shown.
This repo contains the backend code, see https://github.com/Alttaf/ably-fe for the frontend
We did have a search bar where you could update the displayed tweet counts dynamically on the page: This however caused us to encounter rate limits for both the Twitter and the Ably APIs! So we have reverted to the static keyword of "google" for the demo which is live.
- Copy and paste
.env.example
file - Rename to
.env
- Fill in the specified values
- Run
go run ably-text
This could further be expanded to:
- Track sentiment analysis of hashtags (events) in real-time:
- Keep track of the sentiment of certain events
- Monitor multiple events, see which has the highest overall positive sentiment, and most negative sentiment
See DOCS.md for a documentation error