i am using twitter api to stream the latest @elonmusk's tweet. The problem is that when i do that i also get people retweeting elon musk or mentionning him.
How can i exclude the mentions and retweets.
You can filter the tweets by author using the from:
operator, as shown in the Twitter API documentation for Stream Premium Operators .
Note that this is a Premium operator, and can only be used with an Enterprise account.
If you don't have an Enterprise account, you can still use the operator, but not using a stream. Using the Standard search API :
https://api.twitter.com/1.1/search/tweets.json?q=from:elonmusk
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.