[twitter-dev] Re: How to track a phrase in Streaming API?
Hello, I think the problem is missing quotes and URL encoding. Try curl … -d track=harry+potter Thanks; – Matt Sanford / @mzsanford Twitter Dev On Jul 14, 2009, at 7:29 AM, owkaye wrote: How do I track a phrase like harry potter? The docs only show how to track individual words, not phrases ... and this curl command doesn't work properly because it finds tweets with harry and not potter: curl -o /home/ken/twitterStreamJSON.txt http://stream.twitter.com/track.json -u username:password -d track=harry potter, Owkaye
[twitter-dev] Re: How to track a phrase in Streaming API?
How do I track a phrase like harry potter? The docs only show how to track individual words, not phrases ... and this curl command doesn't work properly because it finds tweets with harry and not potter: curl -o /home/ken/twitterStreamJSON.txt http://stream.twitter.com/track.json -u username:password -d track=harry potter, I think the problem is missing quotes and URL encoding. Try curl … -d track=harry+potter Thanks for the suggestion Matt but that doesn't work either. Any other ideas? Owkaye
[twitter-dev] Re: How to track a phrase in Streaming API?
Follow the example on the Streaming API wiki. If you insist on doing this entirely on the command line, which will not work for more than a handful of predicates, you can do: curl localhost:8080/track.xml\? track=Harry,Potter Currently track works only on keywords, not phrases. You can search for Harry OR Potter, but not Harry AND Potter. It's probably best to track on the lowest frequency word in the phrase, to avoid the rate limit. -John Kalucki twitter.com/jkalucki Services, Twitter Inc. On Jul 14, 8:26 am, owkaye owk...@gmail.com wrote: How do I track a phrase like harry potter? The docs only show how to track individual words, not phrases ... and this curl command doesn't work properly because it finds tweets with harry and not potter: curl -o /home/ken/twitterStreamJSON.txt http://stream.twitter.com/track.json-u username:password -d track=harry potter, I think the problem is missing quotes and URL encoding. Try curl … -d track=harry+potter Thanks for the suggestion Matt but that doesn't work either. Any other ideas? Owkaye
[twitter-dev] Re: How to track a phrase in Streaming API?
Currently track works only on keywords, not phrases. This answers my question very clearly, thanks John! I'm storing the data in a local database anyways, so I can just do a phrase search of my data and delete the records I don't need. More data than necessary gets transmitted from Twitter this way, but I guess there's no way around it -- and for me the end result is the same anyways -- so it looks like I can proceed successfully now. Thanks again for everyone's help, I'll be back when I have new questions ... :) Owkaye