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 Filter by User #1

Open
jamesperes-zz opened this issue Oct 23, 2017 · 1 comment
Open

Stream Filter by User #1

jamesperes-zz opened this issue Oct 23, 2017 · 1 comment

Comments

@jamesperes-zz
Copy link
Collaborator

need help for stream by user

Doc Tweepy

@jamesperes-zz
Copy link
Collaborator Author

You should be able to pass the follow keyword like this:

stream.filter(follow=['user_id'])

It receives a list of user IDs.

From the API docs, this should return:

Tweets created by the user.
Tweets which are retweeted by the user.
Replies to any Tweet created by the user.
Retweets of any Tweet created by the user.
Manual replies, created without pressing a reply button (e.g. “@twitterapi I agree”).

It doesn't return:

Tweets mentioning the user (e.g. “Hello @twitterapi!”).
Manual Retweets created without pressing a Retweet button (e.g. “RT @twitterapi The API is great”).
Tweets by protected users.

Note
You can specify both track and follow values and it will result in tweets with the input keyword or tweets created by the input user.
see here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant