Our customers tell us that getting every single Tweet that matters is one of the key reasons they work with Gnip. And sometimes getting every Tweet that matters means filtering out the Tweets you don’t want. With this in mind, I’m happy to announce the introduction of two new operators to our Power Track filtering suite.
The Retweet operator allows a customer to ensure only Retweets that match a rule are delivered or excluded.
To use the Retweet operator, simply add is:retweet or –is:retweet to any rule.
- Receive only Retweets mentioning Apple using a rule like: apple is:retweet as a way to measure engagement of the brand’s fan base
- Get only Tweets with unique content about Apple using a rule like: apple -is:retweet to monitor conversation about the brand and ignore the tremendous volume of retweets generated by the brand
The Sampling operator allows a customer to receive a random sample of Tweets that match a rule rather than the entire set of Tweets.
There are several use cases where the Sampling operator is useful. Say you want to stay within a budgeted number of Tweets each month, but you’re trending higher than that budget halfway through the month. With the Sampling operator, you can scale back your consumption without fully eliminating rules. In another use case you might want to monitor a very high-volume rule or user, but your internal systems can’t handle this volume. Sampling makes this more manageable. Finally, there are times when you simply need to know the directional volumes for things, and don’t need every tweet.
To use the Sampling operator, add sample:## to any rule with an integer value between 1 to 100. The Sampling operator applies to the entire rule and requires any “OR’d” terms be grouped.
- Receive a sampling of 10% of all Tweets that contain “apple” using a rule like:
- Receive a sampling of 50% of all Tweets that contain “iPad” or “iPhone” using a rule like:
(ipad OR iphone) sample:50
As always, thank you for the product feedback and keep it coming. Additional documentation of these new operators and others can be found in our online documentation.