Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get tweets that are not mentions

Tags:

twitter


Is there a way of getting tweets that are not mentions directly from the Twitter API? i.e. Status updates only. I want this:

StackOverflow rules

This is ok too:

it's cold today @randomUser

But not this:

@randomUser i agree

I've looked at both the REST and Streaming APIs and cannot find a way to filter in this way.

Client side filtering is an option but it's dirty.

Reference:
Twitter API docs: http://dev.twitter.com/doc/get/statuses/user_timeline

like image 762
Ralfas Avatar asked Oct 18 '25 15:10

Ralfas


1 Answers

The Twitter API now supports excluding replies when fetching timeline. Just set exclude_replies=true in your request.

Source: https://dev.twitter.com/docs/api/1/get/statuses/user_timeline

like image 110
korona Avatar answered Oct 21 '25 21:10

korona



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!