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

2 views
Skip to first unread message

Toby Inkster

unread,
Dec 14, 2011, 4:57:05 AM12/14/11
to Microformats Discuss
On Mon, 12 Dec 2011 14:59:47 +0000
André Luís <andr...@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:ma...@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

_______________________________________________
microformats-discuss mailing list
microforma...@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss

Reply all
Reply to author
Forward
0 new messages