Naoya Ito > WebService-ChangesRSS > WebService::ChangesRSS

Download:
WebService-ChangesRSS-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.02   Source  

NAME ^

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

SYNOPSIS ^

  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 ^

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 ^

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 ^

WebService::ChangesXml

XML::RSS

http://newhome.weblogs.com/changesRss

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

AUTHOR ^

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

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

COPYRIGHT AND LICENSE ^

Copyright (C) 2004 by Naoya Ito

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.