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;

        on_error => sub {
        my $error = shift;
        warn "ERROR: $error";

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: 

Reply via email to