Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.stream('statuses/filter',{track: something, follow: people} doesn't seem to work #135

Closed
topheman opened this issue Sep 19, 2014 · 2 comments

Comments

@topheman
Copy link

commented Sep 19, 2014

When you want to use the streaming API to track some keywords but only from specific accounts, the "follow" parameter isn't taken in account.

twitClient.stream('statuses/filter',{
  track : ['the','an','is'], //very wide choice of tracking keywords
  follow : '575930104' //the twitter id of @metaphorminute that tweets about every 90secs
});
//and then we add the listeners to the tweets.

The wide choice of keywords should be narrowed down by the specific targeting of the account, but I capture tweets from anyone.

Am I doing something wrong ? It may not be possible ...

Whatever big thanks for your work on this module !

Tophe

@capelio

This comment has been minimized.

Copy link

commented Sep 20, 2014

Unfortunately that's not how the streaming API works. From the Twitter docs:

The track, follow, and locations fields should be considered to be combined
with an OR operator. track=foo&follow=1234 returns Tweets matching “foo” OR
created by user 1234.

On Friday, September 19, 2014, Christophe Rosset notifications@github.com
wrote:

When you want to use the streaming API to track some keywords but only
from specific accounts, the "follow" parameter isn't taken in account.

twitClient.stream('statuses/filter',{
track : ['the','an','is'], //very wide choice of tracking keywords
follow : '575930104' //the twitter id of @metaphorminute that tweets about every 90secs});//and then we add the listeners to the tweets.

The wide choice of keywords should be narrowed down by the specific
targeting of the account, but I capture tweets from anyone.

Am I doing something wrong ? It may not be possible ...

Whatever big thanks for your work on this module !

Tophe


Reply to this email directly or view it on GitHub
#135.

C. Corey Capel
Capelio

corey@capelio.com
303.704.8187

@topheman

This comment has been minimized.

Copy link
Author

commented Sep 20, 2014

My mistake, thanks a lot @capelio for taking the time to answer, no need for more explanation.

@topheman topheman closed this Sep 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.