[twitter-dev] Re: Where in API docs to get first tweet only

2009-10-11 Thread Abraham Williams
You can check out the error codes here:
http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors
Abraham

On Sat, Oct 10, 2009 at 18:14, Scott Haneda  wrote:

>
> Thank you.  I think I just got booted from hitting the public timeline too
> much.  I requested whitelisting via the whitelist form.  Since I am not
> authenticating, and am just curl'ing the json resource for the public
> timeline, is there a way for me to tell what is really happening?
>
> I currently get an http 400 bad request, which I am betting is a
> throttle/block.
>
> Is it possible to determine the remaining number of queries I am allowed
> via some command?
> Thanks.
> --
> Scott * If you contact me off list replace talklists@ with scott@ *
>
> On Oct 10, 2009, at 3:42 PM, John Kalucki wrote:
>
>  http://apiwiki.twitter.com/Streaming-API-Documentation
>>
>
>


-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, Wisconsin, United States


[twitter-dev] Re: Where in API docs to get first tweet only

2009-10-10 Thread Scott Haneda


One last question I think.  Is there a way to control how many items  
come back in a request to the public timeline?  I currently can not  
tell how many there are in the result set, I will have to wait an hour.


However, if I could get a larger batch, I could query it much less  
often.

--
Scott * If you contact me off list replace talklists@ with scott@ * 


[twitter-dev] Re: Where in API docs to get first tweet only

2009-10-10 Thread Scott Haneda


Thank you.  I think I just got booted from hitting the public timeline  
too much.  I requested whitelisting via the whitelist form.  Since I  
am not authenticating, and am just curl'ing the json resource for the  
public timeline, is there a way for me to tell what is really happening?


I currently get an http 400 bad request, which I am betting is a  
throttle/block.


Is it possible to determine the remaining number of queries I am  
allowed via some command?

Thanks.
--
Scott * If you contact me off list replace talklists@ with scott@ *

On Oct 10, 2009, at 3:42 PM, John Kalucki wrote:


http://apiwiki.twitter.com/Streaming-API-Documentation




[twitter-dev] Re: Where in API docs to get first tweet only

2009-10-10 Thread John Kalucki

http://apiwiki.twitter.com/Streaming-API-Documentation


On Oct 10, 3:16 pm, Scott Haneda  wrote:
> Thanks Peter.  Any pointers on general docs on what the heck spritzer  
> and garden hose is?
>
> The public timeline api says this:
>         statuses/public_timeline
>         Returns the 20 most recent statuses from non-protected users who have
>         set a custom user icon. The public timeline is cached for 60 seconds 
> so
>         requesting it more often than that is a waste of resources.
>
> If I pull this into an RSS feed:
> feed://twitter.com/statuses/public_timeline.rss
>
> I refresh it a few seconds later, I get new tweets.  Is that 60 second  
> cache an out of date note in the docs?
>
> The API also states this is rate limited.  To get the data I am after,  
> I am going to be hitting this think pretty hard.  If there is no  
> cache, it will be more than 60 seconds in frequency, more like as soon  
> as the script is done working, I will request it again.  Pretty much  
> perpetual requesting.
>
> Or is this treated more like the search API, and is rate limited very  
> liberally?
> Thank you for your help this Saturday.
> --
> Scott * If you contact me off list replace talklists@ with scott@ *
>
> On Oct 10, 2009, at 2:06 PM, Peter Denton wrote:
>
> > Hi Scott,
> > Since it seems you are looking for a sampling situation, you might  
> > want to
> > poll the public timeline and check for 1st tweet, (created at and  
> > 1st update
> > timeframe are same/near day).
> > Also, you could expand your sample size and look into accessing the
> > spritzer  or garden hose and again running some best guess scenario of
> > signup and first tweet.
>
> > Cheers
> > Peter
>
> > On Sat, Oct 10, 2009 at 1:19 PM, Scott Haneda   
> > wrote:
>
> >> I'm not sure this is possible, I'm trying to avoid a local data  
> >> store to
> >> make it possible.
>
> >> I would like to get a small bit of data from a tweet, but only the  
> >> first
> >> tweet, ignoring that user from that point forward.
>
> >> I can of course grab their username and disregard, but my list will  
> >> grow
> >> quickly.
>
> >> If my goal is to get stats on what time of day most people are  
> >> joining
> >> Twitter and posting their first tweet, what would be the best place  
> >> to query
> >> for that data?
>
> >> I just need the time, and perhaps location fields. Would the search  
> >> API be
> >> good? I hear about this firehose thing, but don't know what that is.
>
> >> I'm thinking the public timeline may be best, but there may be way  
> >> too much
> >> data for me to deal with.
>
> >> Suggestions on methods appreciated.
>
> >> --
> >> Scott
> >> Iphone says hello.


[twitter-dev] Re: Where in API docs to get first tweet only

2009-10-10 Thread Scott Haneda


Thanks Peter.  Any pointers on general docs on what the heck spritzer  
and garden hose is?


The public timeline api says this:
statuses/public_timeline
Returns the 20 most recent statuses from non-protected users who have
set a custom user icon. The public timeline is cached for 60 seconds so
requesting it more often than that is a waste of resources.

If I pull this into an RSS feed:
feed://twitter.com/statuses/public_timeline.rss

I refresh it a few seconds later, I get new tweets.  Is that 60 second  
cache an out of date note in the docs?


The API also states this is rate limited.  To get the data I am after,  
I am going to be hitting this think pretty hard.  If there is no  
cache, it will be more than 60 seconds in frequency, more like as soon  
as the script is done working, I will request it again.  Pretty much  
perpetual requesting.


Or is this treated more like the search API, and is rate limited very  
liberally?

Thank you for your help this Saturday.
--
Scott * If you contact me off list replace talklists@ with scott@ *

On Oct 10, 2009, at 2:06 PM, Peter Denton wrote:


Hi Scott,
Since it seems you are looking for a sampling situation, you might  
want to
poll the public timeline and check for 1st tweet, (created at and  
1st update

timeframe are same/near day).
Also, you could expand your sample size and look into accessing the
spritzer  or garden hose and again running some best guess scenario of
signup and first tweet.

Cheers
Peter

On Sat, Oct 10, 2009 at 1:19 PM, Scott Haneda   
wrote:




I'm not sure this is possible, I'm trying to avoid a local data  
store to

make it possible.

I would like to get a small bit of data from a tweet, but only the  
first

tweet, ignoring that user from that point forward.

I can of course grab their username and disregard, but my list will  
grow

quickly.

If my goal is to get stats on what time of day most people are  
joining
Twitter and posting their first tweet, what would be the best place  
to query

for that data?

I just need the time, and perhaps location fields. Would the search  
API be

good? I hear about this firehose thing, but don't know what that is.

I'm thinking the public timeline may be best, but there may be way  
too much

data for me to deal with.

Suggestions on methods appreciated.

--
Scott
Iphone says hello.






[twitter-dev] Re: Where in API docs to get first tweet only

2009-10-10 Thread Peter Denton
Hi Scott,
Since it seems you are looking for a sampling situation, you might want to
poll the public timeline and check for 1st tweet, (created at and 1st update
timeframe are same/near day).
Also, you could expand your sample size and look into accessing the
spritzer  or garden hose and again running some best guess scenario of
signup and first tweet.

Cheers
Peter

On Sat, Oct 10, 2009 at 1:19 PM, Scott Haneda  wrote:

>
> I'm not sure this is possible, I'm trying to avoid a local data store to
> make it possible.
>
> I would like to get a small bit of data from a tweet, but only the first
> tweet, ignoring that user from that point forward.
>
> I can of course grab their username and disregard, but my list will grow
> quickly.
>
> If my goal is to get stats on what time of day most people are joining
> Twitter and posting their first tweet, what would be the best place to query
> for that data?
>
> I just need the time, and perhaps location fields. Would the search API be
> good? I hear about this firehose thing, but don't know what that is.
>
> I'm thinking the public timeline may be best, but there may be way too much
> data for me to deal with.
>
> Suggestions on methods appreciated.
>
> --
> Scott
> Iphone says hello.
>