stream filter track matching

Jun 19, 2015 at 10:17 PM
Edited Jun 24, 2015 at 8:23 PM
Is is possible to set a flag for strict matching

so if I track for
#tweetinvi
only tweets with #tweetinvi are returned and NOT

tweetinvi.com
or @tweetinvi
or "I am using tweetinvi"
Jun 19, 2015 at 10:22 PM
Also I have come across this

track "tweetinvi"

No matching text from the arg passed in, the tweet text is

"Check out http://t.co/321654987"


Then checking the URL info, I find the URL refers to "tweetinvi.com/blah

Can I specify to NOT match my keywords to URLs?
Jun 19, 2015 at 10:46 PM
also, any flags so the stream does not return retweets, if the original tweet contained the term?

same again for quoted retweets.


:-)
Jun 23, 2015 at 4:38 PM
Hi,

I will have a look into it as soon as I have some spare time.
Sorry for the long delay of the reply.

Cheers,
Linvi
Jun 24, 2015 at 8:24 PM
No worries. I hacked some kind of checking together on my side. It isn't elegant, it isn't pretty, but it seems to work :)
Jun 24, 2015 at 10:07 PM
Edited Jun 25, 2015 at 10:15 AM
Hi there,

So I am currently looking into this issue. But I have different questions.

Post 1

If I track #tweetinvi I personally only receive the tweets containing the hashtag. I do not receive either '@tweetinvi', 'tweetinvi.com' or a tweet containing the 'tweetinvi' keyword. Is it a behavior that you are able to reproduce?

Post 2

I think this should be the responsibility of the user.
Though I consider not receiving a matching track as an issue that should be fixed. The library should check the url and return the track if found in it. I am just a bit worried on the impact on performances but I will definitely have a look into this.

Post 3

I could potentially add a filter but I think there already are quite a few filters and it is very easy to filter retweets for developers.
fs.MatchingTweetReceived += (sender, args) =>
{
    if (args.Tweet.IsRetweet)
         return;
    // do your code logic if it is not a retweet
};
For quoted tweets though, I might consider adding the option. The reason is that a quoted tweet does not have any text matching the track. Though Twitter is still returning it. What do you think about this case?

To conclude

I know there is not a lot of solution in this response, but please take some time to reply so that I can have your point of view and take the best decision if the library needs to be updated.

Regards,
Linvi
```