'Is there any way to exclude any accounts mentioning specific terms from twitter search results

I'm trying to build some advanced twitter searches to monitor certain items. At present, they get thrown off by people using one of the keywords in the username.

I can't just mute / block all those users, as some of them are ones I follow.

At the moment, the only way I can see to completely exclude an account from results is:

    -(@username) -from:username

This works, but the approach rapidly gets lengthy if there are quite a few names to exclude. It also doesn't allow me to exclude all accounts containing username - i.e. @username1 @username2

One thought would be to create a list of accounts to exclude and then filter the list. That doesn't seem to work though as it won't help in excluding replies to these people.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source