Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Cashtags and Hashtags with FilteredStream

$
0
0
I'm using the latest Nuget package of Tweetinvi. I'm having trouble creating filtered streams for both hashtags (#) and cahstags ($). Cashtags are used in tweets when users are referencing market securities such as stocks ($FB).
            int tweets = 0;
            var stream = Stream.CreateFilteredStream();
            stream.AddTrack("$FB");

            stream.MatchingTweetReceived += (o, args) =>
            {
                logger.Debug(String.Format("{0}\t{1}", args.Tweet, ++tweets));
            };

            stream.StartStreamMatchingAllConditions();
For example, $FB is a very popular cashtag on Twitter. However, my filtered stream is not picking up tweets. The same goes for hastags. If I remove # or $ from my tracks, I get flooded with tweets, however, the $/# tagging is important to filter out garbage that I am not interested in.

Is there a workaround to this? Is there something on the roadmap to better deal with hashtags and cashtags?

Chris

Viewing all articles
Browse latest Browse all 4126

Trending Articles