[uf-discuss] Anyone knows of an hcalendar-to-ical service that supports simple RRULEs?

Toby Inkster mail at tobyinkster.co.uk
Wed Dec 14 01:57:05 PST 2011


On Mon, 12 Dec 2011 14:59:47 +0000
André Luís <andr3.pt at gmail.com> wrote:

> The only one that picked it up was Glenn's http://ufxtract.com/ but it
> doesn't provide .ics output. ;)

My HTML::Microformats Perl module should support arbitrarily complex
rrules (and rdate, exrule, exdate).

It natively converts from microformats to RDF, but if it detects that
the RDF::iCalendar Perl module is installed, it can also offer
iCalendar output.

Usage would be something like this:

  use HTML::Microformats;
  use RDF::iCalendar;
  use LWP::Simple;
  
  my $uri    = 'http://example.com/page.html';
  my $markup = get($uri);
  
  my $document = HTML::Microformats
      ->new_document($markup, $uri)
      ->assume_profile('hCalendar');
  
  print $_->to_icalendar
      foreach $document->objects('hCalendar');

I'm not currently running it as a web service though.

-- 
Toby A Inkster
<mailto:mail at tobyinkster.co.uk>
<http://tobyinkster.co.uk>



More information about the microformats-discuss mailing list