In case folks don't read the TPF blog, I need someone to help me out with a script that grabs info from the Perl calendar on Google calendar. I've got it started, just don't have the time right now to polish it.
I think this is related to my earlier post about the calendar [perl.org], and stennie is working on something to provide a generic feed from it. You might talk to him about how you'd like to tag conference events, but I think he's going to abuse the location input for that.
My starter script is also available in that earlier post for anyone who wants to help.
I modified it a bit from that starter. After reading some of the docs, I think I can get data ranges and possibly specify the search as part of the request. Here's the script after my mods: #!/usr/bin/perl use strict;
use Data::Dumper; use Template; use DateTime;
use Net::Google::Calendar;
my $url = "http://www.google.com/calendar/feeds/ngctmrd1cac35061mrjt3hpgng%40group.calenda r.google.com/public/full";
my $cal = Net::Google::Calendar->new( url => $url ); my $dt = DateTime->now();
I have already provided working code to Jim, but I figured I would share for those following along at home: #!/usr/bin/perl use strict; use warnings; use Data::Dumper; use DateTime; use Getopt::Std; use Net::Google::Calendar; use XML::Atom::Util 'iso2dt';
my %opt; get_args(\%opt); my (%data, %seen);
my $cal = Net::Google::Calendar->new(url => $opt{url});
# Google Calendar supports OR'd category queries # Google Calendar supports AND'd search string queries # Multiple fetches are required for OR'd search string queri
Same thing I posted earlier? (Score:2)
My starter script is also available in that earlier post for anyone who wants to help.
Re: (Score:1)
#!/usr/bin/perl
use strict;
use Data::Dumper;
use Template;
use DateTime;
use Net::Google::Calendar;
my $url = "http://www.google.com/calendar/feeds/ngctmrd1cac35061mrjt3hpgng%40group.calend
my $cal = Net::Google::Calendar->new( url => $url );
my $dt = DateTime->now();
my @entries = ();
# Here,
Net::Google::Calendar is seriously broken (Score:1)
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use DateTime;
use Getopt::Std;
use Net::Google::Calendar;
use XML::Atom::Util 'iso2dt';
my %opt;
get_args(\%opt);
my (%data, %seen);
my $cal = Net::Google::Calendar->new(url => $opt{url});
# Google Calendar supports OR'd category queries
# Google Calendar supports AND'd search string queries
# Multiple fetches are required for OR'd search string queri