어쩌면 AnyEvent::Feed을 보면 구성 가능한 폴링 간격으로 비동기 적이며 (AnyEvent 이벤트 루프 사용) '본'기사에 대한 지원 및 RSS 및 Atom 피드 지원이 있습니다. 피드 목록의 여러 섹션을 폴링하는 모든 피드 또는 여러 프로세스를 폴링하는 단일 프로세스를 만들 수 있습니다. 시놉시스에서
: 비교 가져 오는 :
use AnyEvent;
use AnyEvent::Feed;
my $feed_reader =
AnyEvent::Feed->new (
url => 'http://example.com/atom.xml',
interval => $seconds,
on_fetch => sub {
my ($feed_reader, $new_entries, $feed, $error) = @_;
if (defined $error) {
warn "ERROR: $error\n";
return;
}
for (@$new_entries) {
my ($hash, $entry) = @_;
# $hash a unique hash describing the $entry
# $entry is the XML::Feed::Entry object of the new entries
# since the last fetch.
}
}
);
출처
2010-12-13 01:04:58
MkV
본 적이 있습니까 http://superfeedr.com? –
이미 이전 사본이있을 때 전체 피드를 다운로드 할 때마다 HTTP god가 새끼를 죽입니다. 제발, 새끼 고양이를 생각해. http://google.com/search?q=Atom+conditional+GET – daxim