entries) { print $entry->title."\n"; }" />

« Nintendo DS BROWSER | Main | Vox ベータ版 »

30 July 2006

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";
}

TrackBack

TrackBack URL for this entry:
http://bb.lekumo.jp/t/trackback/517129/31023427

Listed below are links to weblogs that reference TypePad.jp's getFeed:

Comments

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.

Post a comment

Access Ranking

Powered by Six Apart
Sponsored links