[twitter-dev] Streaming API track vs. Search results

2010-04-16 Thread Mad Euchre
I wanted to test if my program is getting all the tweets it should. My
simple test was track=Palin and I timed it for exactly 5 minutes. I
got 3 tweets and several replies to. Then I immediately ran  this:
http://search.twitter.com/search.atom?q=Palin
and looked for tweets in the last 5 minutes.

There were 7 results for the last 5 minutes. The 3 I got from the
stream matched the oldest of the 7, so there were 4 newer that the
steam didn't pick up.

I don't mind if there is a slight delay and the missing 4 would
eventually show up. How else can I tell if I'm getting all the tweets
that I'm supposed to  from the stream?

Thanks,

Peter


-- 
Subscription settings: 
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


[twitter-dev] Streaming API - weird data in JSON text

2010-04-14 Thread Mad Euchre
Can someone please tell me why some tweets have the following as the
text?

text:\uc624\ub298 \uc2dc\uac00\ucd1d\uc561\uc774 $AAPL \uc740
$208.0B \uc774\uace0 $GOOG \uc740 $177.2B \ub124\uc694.
\uadf8\ub3d9\uc548 \uc5c5\uce58\ub77d \ub4a4\uce58\ub77d\ud558\ub358
\ub450 \ud68c\uc0ac\uc758 \uc2dc\uac00\ucd1d\uc561 \uacbd\uc7c1\uc740
\uc544\uc774\ud328\ub4dc \ubc1c\ud45c\ub97c \uc804\ud6c4\ud574\uc11c
\uc560\ud50c \ucabd\uc73c\ub85c \uae30\uc6b0\ub294 \uac83
\uac19\uc2b5\ub2c8\ub2e4. \ubb3c\ub860 \ud5a5\ud6c4\uc5d0 \uc5b4\ub5bb
\uac8c \ub420\uc9c...

Thanks,

Peter


[twitter-dev] Is there a way to to make the streaming API track parameter be case sensitive?

2010-03-23 Thread Mad Euchre
It appears it not. I have track=PASS and I get back Passing lane,
Forward Pass, Pass the food, etc.

Thanks

To unsubscribe from this group, send email to 
twitter-development-talk+unsubscribegooglegroups.com or reply to this email 
with the words REMOVE ME as the subject.


[twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-07 Thread Mad Euchre
It turns out you were right with this and John was right with the
POST. Thanks to all who replied. As soon as I changed
(request.readuntilend()) to (request.readline()) the data started
flowing in.

I don't want to muddy the water on this thread but I will by asking
the next predictable problem.  If I have  query string that is ?
track=peter,paul,mary, etc for 1000 terms..won't that exceed some
http limit on length? How does one track about 1000 terms on a single
stream connection? even if there is a method called
request.query(track=peter,paul,mary,etc) isn't that just a substitute
for putting it on the actual URL thus still exceding some length
limit?

Thanks,

 peter

On Mar 5, 4:38 pm, Mark McBride mmcbr...@twitter.com wrote:
 I think this is slightly backwards.  You want to use the GET method, but set
 up the URI you have (with the track=Microsoft parameter).  You will also
 need to authenticate.

 Note that this is a streaming API.  I don't know VB all that well, but
 there's a reasonable chance that this call only returns data when the HTTP
 call has finished.  The streaming API will *never* finish, so you'll need to
 parse data as it's available.  Without looking at VB doc I have no idea how
 you would set that up.

   ---Mark

 http://twitter.com/mccv



 On Fri, Mar 5, 2010 at 9:54 AM, Mad Euchre mad.ukrain...@gmail.com wrote:
  Thanks.

  Now I'm using the post method.

  How should I use the track parameter? Something like this?

   address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
  track=Microsoft)

  I'm getting connected but no data  that matches Microsoft is streaming
  over.No data for that matter.

  I'm passing my name and pw in the request.credentials method. The
  server returned a 200 OK when I added the credentials but not when it
  was in the URL alone.

  ie; address = New Uri(http://stream.twitter.com/1/statuses/
  filter.json?track=Microsoft - name:pw

  Thanks,

  Peter

  On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
   The text file approach only applies to POST parameters set from the curl
   command, and in no other case.

   When creating an HTTP client from within a program, you should be able to
   configure the POST parameters via method calls. If you can't, it's a
  pretty
   worthless HTTP library. Each client library is different, check your
  docs.

   -John Kaluckihttp://twitter.com/jkalucki
   Infrastructure, Twitter Inc.

   On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com
  wrote:
This is the VB code I would use to start any http stream

           request = DirectCast(WebRequest.Create(http://
stream.twitter.com/1/statuses/filter.json - name:pw), HttpWebRequest)
           request.Credentials = New NetworkCredential(name, pw)
           ' Get response
           response = DirectCast(request.GetResponse(),
HttpWebResponse)

           ' Get the response stream into a reader
           reader = New StreamReader(response.GetResponseStream())

The streaming api documentation says to create a file called track.txt
and add text similar to this without the quotes.   track=peter, paul,
mary

Then use curl @track.txthttp://
  stream.twitter.com/1/statuses/filter.json
- name:pw

I can't believe I have to shell out to DOS and run the curl command
line.

My direct question is how do others incorportate the @track.txt in the
VB.Net web request?

Maybe something like this?

   http://stream.twitter.com/1/statuses/filter.json-name:pw?
track.txt

Thanks- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -


[twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-05 Thread Mad Euchre
Thanks.

Now I'm using the post method.

How should I use the track parameter? Something like this?

 address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
track=Microsoft)

I'm getting connected but no data  that matches Microsoft is streaming
over.No data for that matter.

I'm passing my name and pw in the request.credentials method. The
server returned a 200 OK when I added the credentials but not when it
was in the URL alone.

ie; address = New Uri(http://stream.twitter.com/1/statuses/
filter.json?track=Microsoft - name:pw

Thanks,

Peter








On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
 The text file approach only applies to POST parameters set from the curl
 command, and in no other case.

 When creating an HTTP client from within a program, you should be able to
 configure the POST parameters via method calls. If you can't, it's a pretty
 worthless HTTP library. Each client library is different, check your docs.

 -John Kaluckihttp://twitter.com/jkalucki
 Infrastructure, Twitter Inc.



 On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com wrote:
  This is the VB code I would use to start any http stream

             request = DirectCast(WebRequest.Create(http://
  stream.twitter.com/1/statuses/filter.json - name:pw), HttpWebRequest)
             request.Credentials = New NetworkCredential(name, pw)
             ' Get response
             response = DirectCast(request.GetResponse(),
  HttpWebResponse)

             ' Get the response stream into a reader
             reader = New StreamReader(response.GetResponseStream())

  The streaming api documentation says to create a file called track.txt
  and add text similar to this without the quotes.   track=peter, paul,
  mary

  Then use curl @track.txthttp://stream.twitter.com/1/statuses/filter.json
  - name:pw

  I can't believe I have to shell out to DOS and run the curl command
  line.

  My direct question is how do others incorportate the @track.txt in the
  VB.Net web request?

  Maybe something like this?

 http://stream.twitter.com/1/statuses/filter.json- name:pw?
  track.txt

  Thanks- Hide quoted text -

 - Show quoted text -


[twitter-dev] Re: Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-05 Thread Mad Euchre
I switch to post after reading John's response.

When creating an HTTP client from within a program, you should be able
to
configure the POST parameters via method calls. If you can't, it's a
pretty
worthless HTTP library. Each client library is different, check your
docs.

-John Kalucki

On Mar 5, 4:38 pm, Mark McBride mmcbr...@twitter.com wrote:
 I think this is slightly backwards.  You want to use the GET method, but set
 up the URI you have (with the track=Microsoft parameter).  You will also
 need to authenticate.

 Note that this is a streaming API.  I don't know VB all that well, but
 there's a reasonable chance that this call only returns data when the HTTP
 call has finished.  The streaming API will *never* finish, so you'll need to
 parse data as it's available.  Without looking at VB doc I have no idea how
 you would set that up.

   ---Mark

 http://twitter.com/mccv



 On Fri, Mar 5, 2010 at 9:54 AM, Mad Euchre mad.ukrain...@gmail.com wrote:
  Thanks.

  Now I'm using the post method.

  How should I use the track parameter? Something like this?

   address = New Uri(http://stream.twitter.com/1/statuses/filter.json?
  track=Microsoft)

  I'm getting connected but no data  that matches Microsoft is streaming
  over.No data for that matter.

  I'm passing my name and pw in the request.credentials method. The
  server returned a 200 OK when I added the credentials but not when it
  was in the URL alone.

  ie; address = New Uri(http://stream.twitter.com/1/statuses/
  filter.json?track=Microsoft - name:pw

  Thanks,

  Peter

  On Mar 2, 5:19 pm, John Kalucki j...@twitter.com wrote:
   The text file approach only applies to POST parameters set from the curl
   command, and in no other case.

   When creating an HTTP client from within a program, you should be able to
   configure the POST parameters via method calls. If you can't, it's a
  pretty
   worthless HTTP library. Each client library is different, check your
  docs.

   -John Kaluckihttp://twitter.com/jkalucki
   Infrastructure, Twitter Inc.

   On Tue, Mar 2, 2010 at 12:42 PM, Mad Euchre mad.ukrain...@gmail.com
  wrote:
This is the VB code I would use to start any http stream

           request = DirectCast(WebRequest.Create(http://
stream.twitter.com/1/statuses/filter.json - name:pw), HttpWebRequest)
           request.Credentials = New NetworkCredential(name, pw)
           ' Get response
           response = DirectCast(request.GetResponse(),
HttpWebResponse)

           ' Get the response stream into a reader
           reader = New StreamReader(response.GetResponseStream())

The streaming api documentation says to create a file called track.txt
and add text similar to this without the quotes.   track=peter, paul,
mary

Then use curl @track.txthttp://
  stream.twitter.com/1/statuses/filter.json
- name:pw

I can't believe I have to shell out to DOS and run the curl command
line.

My direct question is how do others incorportate the @track.txt in the
VB.Net web request?

Maybe something like this?

   http://stream.twitter.com/1/statuses/filter.json-name:pw?
track.txt

Thanks- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -


[twitter-dev] Need help with the streaming API syntax....specifically how to point to the track text file without using curl

2010-03-02 Thread Mad Euchre
This is the VB code I would use to start any http stream

request = DirectCast(WebRequest.Create(http://
stream.twitter.com/1/statuses/filter.json - name:pw), HttpWebRequest)
request.Credentials = New NetworkCredential(name, pw)
' Get response
response = DirectCast(request.GetResponse(),
HttpWebResponse)

' Get the response stream into a reader
reader = New StreamReader(response.GetResponseStream())


The streaming api documentation says to create a file called track.txt
and add text similar to this without the quotes.   track=peter, paul,
mary

Then use curl @track.txt http://stream.twitter.com/1/statuses/filter.json
- name:pw

I can't believe I have to shell out to DOS and run the curl command
line.

My direct question is how do others incorportate the @track.txt in the
VB.Net web request?

Maybe something like this?

http://stream.twitter.com/1/statuses/filter.json - name:pw?
track.txt

Thanks