sferik / twitter-ruby

A Ruby interface to the Twitter API.
http://www.rubydoc.info/gems/twitter
MIT License
4.59k stars 1.31k forks source link

Do you know how to exclude blocked users' tweets from search results? #1007

Closed atKuma closed 2 years ago

atKuma commented 2 years ago

In the official app, we can exclude blocked users' tweets from the search results with the corresponding setting, but I don't know how to do the same thing with Twitter::REST::Search#search.

I tried to exclude blocked users' tweets by just adding -from:screen_name as many as the number of blocked users to query parameter, but in this way the query will be too long and the request will be error.

Do you have any ideas?

atKuma commented 2 years ago

Now I suppose what I want to do is impossible since the twitter API does not provide such an option, so I give up and close this issue.

Thanks.