| Net-Douban documentation | view source | Contained in the Net-Douban distribution. |
Net::Douban::Entry
version 1.07
use Net::Douban::Atom;
my $feed = Net::Douban::Atom->new(\$xml);
my @entries = $feed->entries;
$entry->get('title');
$entry->content;
$entry->attributes;
$entry->tags;
This is the parser of douban.com xml entry based on XML::Atom::Entry and Moose
Many functions not listed here are documented in XML::Atom::Entry
$entry->content();
返回content内容
$entry->attributes;
返回包含所有attribute的hash引用
$entry->tags;
返回包括所有tag的数组引用
$entry->rating;
返回一个rating的hash引用
woosley.xu<redicaps@gmail.com>
Copyright (C) 2010 by Woosley.Xu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
| Net-Douban documentation | view source | Contained in the Net-Douban distribution. |