Livedoor Reader RSS�o�^�Ґ��̎擾

Web�nRSS���[�_�[�ł���Livedoor Reader��User Agent����������ƁALivedoor Reader�ł�RSS�o�^�Ґ���m�邱�Ƃ��o���܂��B �����ł́AApache�̃A�N�Z�X���O����Livedoor Reader�ł�RSS�o�^�Ґ��𒊏o������@��������܂��B

�T���v���R�[�h

Perl�ł̃T���v���R�[�h�ł��B Livedoor Reader��RSS�̍X�V���m�F���ɗ������O����A�w�ǎҐ��𒊏o���Ă��܂��B


#!/usr/bin/perl

open(LOGFILE, "access_log.txt") || die $!;

while (<LOGFILE>) {
  /^([^ ]*) ([^ ]*) ([^ ]*) \[([^\]]*)\] "([^"]*)" ([^ ]*) ([^ ]*) "([^"]*)" "([^"]*)"/;

  $remotehost = $1;
  $fromidentd = $2;
  $remoteuser = $3;
  $datetime = $4;
  $httprequest = $5;
  $httpstatus = $6;
  $databytes = $7;
  $refer = $8;
  $useragent = $9;

  if ($useragent =~ /^livedoor FeedFetcher/) {
    if ($useragent =~ /; ([^ ]*) subscribers\)/) {
      $subscribers = $1;
      print "subscribers=" . $subscribers . "\n";
    }
  }
}

close(LOGFILE);

exit;


���O���̃G���g�����ɓo�^�Ґ����ω����Ă���”\��������̂Œ��ӂ��ĉ������B �܂��A��‚̃��O���ɕ�����RSS URL���܂܂�Ă���ꍇ�A��L�T���v���ł͍������ĕ\������Ă��܂��܂��B �K�v�ɉ�����RSS��URL�����p������͂��s���Ă��������B


IPv6b

YouTube�`�����l������Ă܂��I