node-twitter
node-twitter copied to clipboard
Stream a specifics user accounts tweets (but not anything else)
So I am trying to track the tweets a single account. I'm able to stream with
twitter.stream('statuses/filter', {track: 'WarframeAlerts'}, function(stream)
but it's also spitting out every tweet other users send them.
How can I make it so that it only shows the tweets, and not the tweets they receive. Thanks
You should use follow
(filters by users) instead of track
(filters by keywords or phrases) in the end point parameters.
From: https://developer.twitter.com/en/docs/tweets/filter-realtime/api-reference/post-statuses-filter.html
Exactly. Here's a demo with twitter-lite, which is a modern and actively maintained Twitter library.