SpiderStrategies / node-tweet-stream

Node twitter module to hook into the public filter streaming, seamlessly updating the tracking keywords.
210 stars 43 forks source link

How do I follow a user's posts? #60

Closed BloomAutist47 closed 2 years ago

BloomAutist47 commented 2 years ago

t.follow()

I assume its this function but i'm just too confused how to use it

cmbuckley commented 2 years ago

The follow() filter uses Twitter user IDs, not usernames. So you need to use something like https://tweeterid.com/ to get the ID, and follow that instead of the username.

Twitter docs (no examples so easy to miss this detail): https://developer.twitter.com/en/docs/twitter-api/v1/tweets/filter-realtime/guides/basic-stream-parameters#follow

BloomAutist47 commented 2 years ago

forgot to reply. Thanks a lot!