WebService::ChangesRSS - Do something with updated blogs on Weblogs.Com, using the RSS which contains blog's updated information.


WebService-ChangesRSS documentation  | view source Contained in the WebService-ChangesRSS distribution.

Index


NAME

Top

WebService::ChangesRSS - Do something with updated blogs on Weblogs.Com, using the RSS which contains blog's updated information.

SYNOPSIS

Top

  use WebService::ChangesRSS;

  # Simple API
  my $changes = WebService::ChangesRSS->new("http://www.weblogs.com/changesRss.xml");
  my $pings   = $changes->find_new_pings(600); # find new blogs updated in 600 seconds

  for my $ping (@$pings) {
      do_something($ping->{url});
  }

  # Event based API
  # do something with new blogs with 300 seconds interval

  my $changes = WebService::ChangesRSS->new("http://www.weblogs.com/changesRss.xml");
  $changes->add_handler(\&found_new_ping);

  while (1) {
      $changes->find_new_pings();
      sleep 300;
  }

  sub found_new_ping {
      my($blog_name, $blog_url, $when) = @_;
      do_something($blog_url);
  }

DESCRIPTION

Top

WebService::ChangesRSS is a module for handling changesRss.xml on Weblogs.com. (or other services that provides information for newly updated blogs with RSS. e.g. http://ping.cocolog-nifty.com/changes.rdf)

This module has same interfaces as WebService::ChangesXml. Please see the document of WebService::ChangesXml.

NOTICE

Top

In order to handle newly updated blogs, it is necessary that each items have dc:date or pubDate elements which can express updated time of item in the RSS.

SEE ALSO

Top

WebService::ChangesXml

XML::RSS

http://newhome.weblogs.com/changesRss

http://www.weblogs.com/changesRss.xml

AUTHOR

Top

Naoya Ito, <naoya@naoya.dyndns.org>

Thanks to Tatsuhiko Miyagawa, author of WebService::ChangesXml. This module is almost its copy. ;)

COPYRIGHT AND LICENSE

Top


WebService-ChangesRSS documentation  | view source Contained in the WebService-ChangesRSS distribution.