farzinadil / Dogefather

Twitter Bot that sends SMS alerts when influencers like Elon Musk tweet about stocks or cryptos.
GNU General Public License v3.0
60 stars 9 forks source link

[Feature request] websocket support #1

Closed liho00 closed 3 years ago

liho00 commented 3 years ago

Hi, its a great program, but i am curious why dont you use websocket instead of rest api call? Because Websocket is much more faster and only push message when there is an updates, while rest api calls are quite slow and consumes more resources.

farzinadil commented 3 years ago

Hi, you are right WebSocket will be better. I will look over the filtered stream from the Twitter API (https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/quick-start) and see if I can get it to work.

farzinadil commented 3 years ago

It uses filtered stream from Twitter now.