TypePad.jp's getFeed
#!/usr/bin/perl
use strict;
use warnings;
use XML::Atom::Client;
use XML::Atom::Entry;
my $api = XML::Atom::Client->new;
$api->username('YourUserName');
$api->password('YourPassword');
my $FeedURI = 'http://www.typepad.jp/t/atom/weblog/blog_id=YourBlogID';
my $feed = $api->getFeed($FeedURI)
or die("can not get feed:");
for my $entry ($feed->entries) {
print $entry->title."\n";
}
Unfortunately I don't have an updated vesorin of this code, but the\ basics\ of the HTTP transactions etc in there should still work(hopefully). You'll just probably have to write a bunch of custom codeto do specifically whatever you're trying to do. The intention of thislibrary was really just to provide a super basic layer to make some ofthe low-level stuff easier. It was never really intended toautomatically handle any specific implementation of an Atom API.
Posted by: Zabir | 08 June 2012 at 07:56 PM