Re: [twitter-dev] Twitter Stream closed when another stream tries to connect with the same credentials..

2011-07-12 Thread Scott Wilcox
No, its designed to do that to prevent you from connecting more than once with 
a set of credentials.

On 12 Jul 2011, at 10:07, sush wrote:

> Hi,
> As per the documentation, Twitter stream is closed when another stream
> is connected with the same credentials. Is there any method to force
> such that the already connected stream is not closed when another
> stream tries to connect with the same credentials.
> 
> Thanks,
> Sushant
> 
> -- 
> Twitter developer documentation and resources: https://dev.twitter.com/doc
> API updates via Twitter: https://twitter.com/twitterapi
> Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
> Change your membership to this group: 
> https://groups.google.com/forum/#!forum/twitter-development-talk

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


[twitter-dev] Twitter Stream closed when another stream tries to connect with the same credentials..

2011-07-12 Thread sush
Hi,
As per the documentation, Twitter stream is closed when another stream
is connected with the same credentials. Is there any method to force
such that the already connected stream is not closed when another
stream tries to connect with the same credentials.

Thanks,
Sushant

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk


Re: [twitter-dev] Twitter stream shuts off every 60 seconds

2011-02-27 Thread John Kalucki
It sounds like you have multiple connections on the same account.

-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.


On Fri, Feb 25, 2011 at 2:20 PM, jon  wrote:

> Hi,
>
> If I try:
> curl -d @tracking http://stream.twitter.com/1/statuses/filter.json -
> uUsername:Password > tweets.json
>
> This shuts off in exactly 60 seconds.  If I try the same command with
> another account... it'll keep on going.
>
> Is there any way I can check the status of my account and know when
> I'll have full access to the stream again?  I'm trying to figure out
> what's cutting off my stream.
>
> Thanks!
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Twitter stream shuts off every 60 seconds

2011-02-25 Thread jon
Hi,

If I try:
curl -d @tracking http://stream.twitter.com/1/statuses/filter.json -
uUsername:Password > tweets.json

This shuts off in exactly 60 seconds.  If I try the same command with
another account... it'll keep on going.

Is there any way I can check the status of my account and know when
I'll have full access to the stream again?  I'm trying to figure out
what's cutting off my stream.

Thanks!

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Twitter Stream API connection timed out error

2011-02-16 Thread Matt Harris
Hi Zhe Chen,

It is possible for the streaming connection to restart or disconnect you.
There are a few reasons why this can happen and all are explained in our
Streaming API concepts document. Approaches on how to deal with disconnects
are also explained in the document.

You can find the concepts document here:
http://dev.twitter.com/pages/streaming_api_concepts

with the specific information about connecting here:
http://dev.twitter.com/pages/streaming_api_concepts#connecting

Let us know if you have any questions,

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Feb 15, 2011 at 10:25 AM, Zhe Chen  wrote:

> I will get an error says connection timed out after running my program
> for many hours.
>
> What should I do to avoid this?
>
> my $listener = AnyEvent::Twitter::Stream->new(
>consumer_key=> $consumer_key,
>consumer_secret => $consumer_secret,
>token   => $token,
>token_secret=> $token_secret,
>method  => "filter",
>track   => $searchTerm,
>
>on_connect => sub {
>warn "bgStreamSearch.pl connected";
>},
>
>on_tweet => sub {
>my $tweet = shift;
>writeTweet($tweet);
> },
>
>on_error => sub {
>my $error = shift;
>warn "ERROR: $error";
>$done->send;
>},
>  );
> $done->recv;
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Twitter Stream API connection timed out error

2011-02-15 Thread Zhe Chen
I will get an error says connection timed out after running my program
for many hours.

What should I do to avoid this?

my $listener = AnyEvent::Twitter::Stream->new(
consumer_key=> $consumer_key,
consumer_secret => $consumer_secret,
token   => $token,
token_secret=> $token_secret,
method  => "filter",
track   => $searchTerm,

on_connect => sub {
warn "bgStreamSearch.pl connected";
},

on_tweet => sub {
my $tweet = shift;
writeTweet($tweet);
 },

on_error => sub {
my $error = shift;
warn "ERROR: $error";
$done->send;
},
  );
$done->recv;

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Twitter Stream API rate limit issue

2011-01-04 Thread Zhe Chen
Hi,

The stream API doc shows every account can only establish one
connection.

Currently I am implementing an web application, which has a "search"
button. When a user click "search", it should take some key words from
textbox and search it through twitter stream api.

I create a connection when a user search. In this case, I will have
problem when multiple users are using the application since I can only
have one connection. What is the right way to do this?

Thanks

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Twitter Stream how to filter on location and terms vs. the default OR of the twitter stream

2010-12-13 Thread Pollie
HI All,

I am new to the Twitter API. I am working on a project where I want to
filter the Twitter stream on both the location and a set of terms. My
understanding from reading the location section is by default an
"OR".IF I filter "rain" and "London"

"1/statuses/filter.json?track=twitter&locations=-0.1,51.4,0.0,51.6

I will get tweets that are either in "London" or either contain
"rain".
What I want to filter so I only get Tweets from London and only
contain the term "rain".

I working in Processing using the Tweet Stream Library.by Mark
McBride:
http://mccv.github.com/processing-tweet-stream/

Any advice or guidance is greatly appreciated.


Twitter4J Library ---

I have also download and tried the Twitter4J library with
Processing..
http://twitter4j.org/en/index.html
But I can't get it show up in the Processing Menu/Sketch/Import
I followed the instructions here but that didn't help:
http://blog.blprnt.com/blog/blprnt/quick-tutorial-twitter-processing

If anyone can help with either/or issue. I will greatly appreciate it.

Thanks,
Paba

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Twitter Stream API - Location filtering limited to the Western Hemisphere?

2010-07-21 Thread M. Edward (Ed) Borasky

Quoting John Kalucki :


Given the proportion of geo-tagged tweets, perhaps we should indeed
make these boxes bigger for the default access role.


Any numbers you'd be willing to share? I'd hate to see you go with  
bigger boxes only to have to shrink them again when location picks up  
in Twitter hot-spots like PDX and SFO. "Spritzer" dropping from 5% to  
1% is kinda fresh in my mind. ;-)


--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

"A mathematician is a device for turning coffee into theorems." - Paul Erdos




Re: [twitter-dev] Twitter Stream API - Location filtering limited to the Western Hemisphere?

2010-07-21 Thread John Kalucki
If you need larger bounding boxes, you can request a higher access
level. You can also assemble a number of smaller bounding boxes into a
larger box to cover more area. So, you can divvy up your allocation
into a contiguous area, or multiple discontinuous regions.

If there's a bug on creating a legally-sized bounding box that
straddle one or both of the prime meridian or the equator, we'll
certainly fix that.

Given the proportion of geo-tagged tweets, perhaps we should indeed
make these boxes bigger for the default access role.

-John



On Wed, Jul 21, 2010 at 8:08 AM, Dave Ingram  wrote:
> On 07/21/10 15:13, James wrote:
>> I'm attempting to stream Tweets from the UK as a whole(filtering
>> further with tracking words), using Twitters stream API, however I'm
>> having trouble with my bounding box.
>>
>> The LAT/LON pairs I'm using to define a bounding box of the whoe
>> UK(Ire included) is as follows.
>>
>> -9.05, 48.77, 2.19, 58.88
>>
>> However when I try to use this with the Twitter stream API, it states
>> the following error message.
>>
>> Location track must be less than 1 degrees on a side:
>> LocationTrack(48.77,-9.05,58.88,2.19)
>>
>> I can't imagine that Twitter do not allow you a specify a bounding box
>> that covers an area that crosses between the negative/positive LAT. Am
>> I missing something here, or would this mean that Twitter only allow
>> you to stream if you are in the Wester hemishphere, effectively?
>>
>> If anyone has a suggest as to how I might be able to over-come this,
>> I'd be very interested in hearing you out.
>>
> Just a thought, but the error says that the bounding box must be at most
> one degree on each side... and that box is about 11x10. It does seem
> like a bit of a restriction, but still...
>
>
> D
>


Re: [twitter-dev] Twitter Stream API - Location filtering limited to the Western Hemisphere?

2010-07-21 Thread Dave Ingram
On 07/21/10 15:13, James wrote:
> I'm attempting to stream Tweets from the UK as a whole(filtering
> further with tracking words), using Twitters stream API, however I'm
> having trouble with my bounding box.
>
> The LAT/LON pairs I'm using to define a bounding box of the whoe
> UK(Ire included) is as follows.
>
> -9.05, 48.77, 2.19, 58.88
>
> However when I try to use this with the Twitter stream API, it states
> the following error message.
>
> Location track must be less than 1 degrees on a side:
> LocationTrack(48.77,-9.05,58.88,2.19)
>
> I can't imagine that Twitter do not allow you a specify a bounding box
> that covers an area that crosses between the negative/positive LAT. Am
> I missing something here, or would this mean that Twitter only allow
> you to stream if you are in the Wester hemishphere, effectively?
>
> If anyone has a suggest as to how I might be able to over-come this,
> I'd be very interested in hearing you out.
>   
Just a thought, but the error says that the bounding box must be at most
one degree on each side... and that box is about 11x10. It does seem
like a bit of a restriction, but still...


D


[twitter-dev] Twitter Stream API - Location filtering limited to the Western Hemisphere?

2010-07-21 Thread James
I'm attempting to stream Tweets from the UK as a whole(filtering
further with tracking words), using Twitters stream API, however I'm
having trouble with my bounding box.

The LAT/LON pairs I'm using to define a bounding box of the whoe
UK(Ire included) is as follows.

-9.05, 48.77, 2.19, 58.88

However when I try to use this with the Twitter stream API, it states
the following error message.

Location track must be less than 1 degrees on a side:
LocationTrack(48.77,-9.05,58.88,2.19)

I can't imagine that Twitter do not allow you a specify a bounding box
that covers an area that crosses between the negative/positive LAT. Am
I missing something here, or would this mean that Twitter only allow
you to stream if you are in the Wester hemishphere, effectively?

If anyone has a suggest as to how I might be able to over-come this,
I'd be very interested in hearing you out.


[twitter-dev] twitter stream

2010-05-18 Thread James Jones
I just curious on what peoples thought are on the new twitter stream? 
Also would like to know if ajax is good at handling the stream or should 
I be using some other technology when using the stream API?


Re: [twitter-dev] Twitter Stream crossdomain.xml

2010-03-17 Thread John Kalucki
It's in the code, but turned off out of an abundance of caution for capacity
reasons. Given our current plans, it's going to be a little while longer
before we can turn this on.

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


On Wed, Mar 17, 2010 at 10:29 AM, TarGz  wrote:

> hi,
>
> I have prevriuosly work on twittearth.com and now I work a project
> that use the stream API.
> The stream API work very well, it is very responsive and powerfull and
> help me build a realtime geolocated search tool...
>
> The bad sing is that my Flash app only work offline because of the lak
> of crossdomain.xml
>
> Did you have plan to put a http://sream.twitter.com/crossdomain.xml
> file live soon ? because I love to share my tools with the world.
>
> Thank per advance for your answer(s)
>
> Looking forward for your reply
>


[twitter-dev] Twitter Stream crossdomain.xml

2010-03-17 Thread TarGz
hi,

I have prevriuosly work on twittearth.com and now I work a project
that use the stream API.
The stream API work very well, it is very responsive and powerfull and
help me build a realtime geolocated search tool...

The bad sing is that my Flash app only work offline because of the lak
of crossdomain.xml

Did you have plan to put a http://sream.twitter.com/crossdomain.xml
file live soon ? because I love to share my tools with the world.

Thank per advance for your answer(s)

Looking forward for your reply


[twitter-dev] Twitter stream api -ping service-

2009-05-26 Thread techtimes

Hi,

If I follow 150 users via the streaming api Url
http://stream.twitter.com/follow.format

Hows does it works in practice:

1: is data pushed to the URL?

2: does the URL can ping my application when new updates are ready to
be collected?

Thanks
Joao