NAME Net::NicoVideo::JA - �卝�喋�卝�喳�閧𤫇�萸�扎���詻�� Perl �扎�喋�踴�𨰻�扼�潦�� VERSION �瓐�柴�U�詻�乓�潦�怒�舀𧊋摰峕�僐�扼�踺�� API �臭�𠰴�䎚��憭剹���剹�䎚�卝�瓐�具�䔶���喋�𨰻�䎚��憭𠾼�譌�格�蠘�賬�峕𧊋摰蠘��扼�踺�� SYNOPSIS use Net::NicoVideo; my $video_id = $ARGV[0] or die; my $nnv = Net::NicoVideo->new({ email => 'your-nicovideo@email.address', password => 'and-password', }); my $info = $nnv->fetch_thumbinfo( $video_id ); my $flv = $nnv->fetch_flv( $video_id ); printf "download: %s\n". $info->title; if( $flv->is_economy ){ warn "now economy time, skip\n"; }else{ my $save_path = sprintf '%s/Movies/%s.%s', $ENV{HOME}, $video_id, $info->movie_type; $nnv->fetch_watch( $video_id ); $nnv->fetch_video( $flv, $save_path ); if( -s $save_path == $info->size_high ){ print "ok\n"; }else{ print "finished, but it may have broken.\n"; } } DESCRIPTION �卝�喋�卝�喳�閧𤫇�胯���𠯫�𧋦�扳�匧�溻�芸�閧𤫇�望�剹�萸�扎���扼�踺�� �滚� Net-NicoVideo �胯���卝�喋�卝�喳�閧𤫇�柴�萸�扎����憭硔�扼���𨳍�具�𨳍�𨰻�䎚�� ���芥�硔�詻�扼�胯���� HTTP �~���颯�潦�賂�剹�詻�U�胯�颯�嫘�踺�卝�麄���柴�扎�喋�踴�𨰻�扼�潦�嫘�埝�𣂷�䜘�𨰜�整�踺�� �瓐�䎚�怒���𨳍��銝�鞎怒�𨰜�麄�U�胯�颯�寞䲮瘜𨰻�怒�����艾�萸�扎���詻�U�胯�颯�嫘�踺�卝�瓐�具�䎚�扼�溻�� �整�麄�怒�𨰜�颯�怠�硔�𨰻�䎚�麄�研�嫘�腈�喋�嫘�垍�鞉�栶�具�𨰜�血�𨰜�衤�卝�䎚�扼�溻�整�踺�� �腈�𨰜�艾�瓐�柴�胯�押�� Net::NicoVideo �胯�����芥�硔�詻�扼�胯���鍦�𨰜�讠�箝�格�讠�𠾼�溻�鉝�� �喋�喋�㻫�胯���怎�譌���麄�艾�潦�����芥�����具�𨰜�艾�����𨳍�整�踺�� �瓐�柴�胯�押�嫘�柴�扎�喋�嫘�踴�喋�嫘�胯���腈�桀���具�扼�� Net::NicoVideo::UserAgent �鍦⏚�鍂�𨰜�艾���整�踺�� 閮�����䜘���䎚�啜���胯�押�扎�U�喋���胯���𠹺�汿�研�踺�怒�桐�蓥�卝�柴�麄���� Net::NicoVideo::UserAgent �雴蝙��鈭卝�䎚�扼�溻�整�踺�� �腈�桀聦����胯���U�胯�颯�嫘�格挾��硔�𨳍�怒�胯�押�扎�U�喋���航䌊�㗇釣�譌�埝�𨰻��敹�閬��䎚���卝�瓐�具�扼�𨰜������ �U�胯�颯�孵紋鞊~�柴�萸�扎���怒�胯�����卝�芥�硔�詻�扼�胯���鍦�𨰜�讠�箝�怒��摰��卝�嫘�溻�怒�潦�怒���睃銁�踺�卝�卝�剹�扼�踺�� �麄�具���啜����閧𤫇�𨰻�~�扎�怒�鍦�硋�𨰜�𨰜�麄���聦����胯���整�𠾼�萸�扎���怒�准�啜�扎�喋�𨰜�� flv �典鐤�啜�䎚�卝�芥�硔�詻�扼�胯���鉝�芥�胯�具�嫘���𨰜���凒�怠�閧𤫇�㘾魿閬扼�𨰜�煺�𨳍�扼�� ��閧𤫇�� URL �鉝�芥�胯�具�嫘���𨰜�芥�㻫�䎚�啜�芥�𨳍�整�䜘�瓐�� �胯�押�� Net::NicoVideo �柴�扎�喋�嫘�踴�喋�嫘�胯�腈���𨰜���烾�踺�柴�怒�潦�怒�鉝�~�賬���剹�具�𨰜�艾�整�具���� �艾�潦�嗚�思噶摰栶�鉝�胯�卝�𨳍�整�踺�� ���𠾼�䎚�怒�𨰜�艾�����瓐�柴�U�詻�乓�潦�怒�雴蝙����䜘�怒�胯�� �萸�扎���柴�芥�硔�詻�扼�胯���怒�扎���佗���麄�具���� flv �具�臭�𨰻�卝�� thumbinfo �具�臭�𨰻�卝�芥�抬�剹�� ���讠�见漲�桃䰻霅塩�諹��卝�卝���𨰜�䎚�整�䜘�瓐�� �麄�𨬭���腈�������煺�𧢲��怒�扎���艾�� Web �埝䔝�嗘�卝�扼�踺�僐�怎�𢛵�鍦�𨰜�衤�卝��枂�䔉�卝�扼�𨰜������ �芥�𨳍���卝�喋�卝�喳�閧𤫇�� 2012 撟� 5 ����怒�萸�扎���䎚�芥�卝�乓�潦�U�怒�𨰻�䎚�整�𨰜�麄�� �瓐�柴�U�詻�乓�潦�怒�䔶蝙���讠��𤩅�胯�䎚�卝�喋�卝�喳�閧𤫇嚗��笔挪嚗剹�溻�典鐤�啜�䎚�卝���芥�卝�乓�潦�U�怠�溻�柴�萸�扎���扼�踺�� �䎚�卝�喋�卝�喳�閧𤫇嚗��笔挪嚗剹�溻�胯�����扎�整�找蝙���卝�卝�胯���瓐�柴�U�詻�乓�潦�怒�桐�𡏭���舐䰻�𨳍�整�䜘�瓐�� �����瓐�柴�U�詻�乓�潦�怒�胯�����整���整�牐蝙���艾���卝�扼�𨰜�����页�� CONSTRUCTOR �喋�喋�嫘���押�胯�踴�胯���𨰻���潦�怒�剹�鍦�𡁶儔�踺�卝�譌���瑯�乓�颯�芥�𨰻�~�研�喋�嫘�鍦�𨰜�睲�塩�㻫�整�踺�� my $nnv = Net::NicoVideo->new({ user_agent => LWP::UserAgent->new, email => 'your-nicovideo@email.address', password => 'and-password', delay => 1, }); ���𨰻���潦�怒�剹�怒�臬���溻�柴�U�胯�颯�嫘�颯�~�賬���剹�䎚���𨳍�整�踺�� �腈�~�剹�株狀��汿�鍦��扼�𨰜�虫�卝�𨰻���� ACCESS METHOD (LOWER LEVEL) �𨰻���潦�怒�剹�詻�桐�汿�研�踺�怒�柴�U�胯�颯�嫘�颯�~�賬���剹�� ���𨰻�押�怒�����僐�芥���潦�瑯�扼�喋�雴�卝�𨰻�芥���� �𨰻���潦�怒�剹�垍凒�𦻖�怨身摰𠾼�餃�硋�𨰜�踺�卝�麄���柴���柴�扼�踺�� 撘閙㺭�怠�扎�雴�汿���笔聦����胯�腈�桀�扎�鉝�𨰻���潦�怒�剹�怨身摰𠾼�𨰜�整�踺�� user_agent �萸�扎���� HTTP 嚗��整�麄�� HTTPS 嚗剹�扼�U�胯�颯�嫘�踺�卝�麄���� �艾�潦�嗚�颯�具�潦�詻�扼�喋���鍦�硋�𨰜���整�麄�航身摰𠾼�𨰜�整�踺�� 閮剖�𠾼�踺�卝�艾�潦�嗚�颯�具�潦�詻�扼�喋���� LWP::UserAgent �柴�扎�喋�嫘�踴�喋�嫘�卝�� �腈�柴�萸�硔�胯�押�嫘�柴�扎�喋�嫘�踴�喋�嫘�扼���见�閬��䎚���𨳍�整�踺�� $nnv->user_agent(LWP::UserAgent->new); $ua = $nnv->user_agent; email �萸�扎���怒�准�啜�扎�喋�踺�钅�䜘�怨�瘙��𨰻�䎚�卝�~�潦�怒�U�剹�研�嫘�� $nnv->email($email); $email = $nnv->email; password �萸�扎���怒�准�啜�扎�喋�踺�钅�䜘�怨�瘙��𨰻�䎚�卝�~�潦�怒�U�剹�研�嫘�怠紋�踺�卝�㻫�嫘�胯�潦�剹�� $nnv->password($password); $password = $nnv->password; delay �萸�扎���賊���𠾼�𨰜�麄�U�胯�颯�嫘�鉝�踺�钅�䜘�怒���U�胯�颯�嫘�𢛵�具�桅�瓐�怠榆�埈�麄��敺��⊥���橒���𡜐�剹�� $nnv->delay($seconds); $seconds = $nnv->delay; ACCESS METHOD (UPPER LEVEL) �𨰻���潦�怒�剹�詻�柴��擃塩�研�踺�怒�柴�U�胯�颯�嫘�颯�~�賬���剹�� 雿汿�研�踺�怒�柴�腈�䎚�怠紋�𨰜���僐�芥���潦�瑯�扼�喋�����𨰻�押�怒���扎�𣬚鍂�譌�𨰻�䎚�艾���整�踺�� �喋�喋�嫘���押�胯�踴�扼�𨰻���潦�怒�剹�坿身摰𠾼�𨰜�笔�䎚�柴�𨰻���潦�怒�剹�詻�柴�U�胯�颯�嫘�胯�� �𡁜虜�胯���瓐�䎚�剹�鍦⏚�鍂�𨰜�整�踺�� get_user_agent �怒�嫘�踴�𠺶�扎�箝�𨰻�䎚�麄�艾�潦�嗚�颯�具�潦�詻�扼�喋�� Net::NicoVideo::UserAgent �� �扎�喋�嫘�踴�喋�嫘�雴�𨀣�僐�𨰜�西�𢛵�𨰜�整�踺�� Net::NicoVideo::UserAgent �胯�𨰻���潦�怒�� user_agent �怨身摰𠾼�𨰻�䎚�麄�扎�喋�嫘�踴�喋�嫘�� 鋆�憌整�踺�卝���喋�研�潦�踴�怒�芥���艾���整�踺�� �𨰻���潦�怒�� user_agent �諹身摰𠾼�𨰻�䎚�艾���芥���聦����胯�� ���喋�研�潦���𨰻�䎚�卝�喋�喋�腈�潦�溻�喋���具�𨰜�� LWP::UserAgent �柴�扎�喋�嫘�踴�喋�嫘�𣬚���僐�𨰻�䎚�整�踺�� get_email �萸�扎���怒�准�啜�扎�喋�踺�钅�䜘�怨�瘙��𨰻�䎚�卝�~�潦�怒�U�剹�研�嫘�鍦�硋�𨰜�𨰜�整�踺�䎚�� �𨰻���潦�怒�� email �峕𧊋摰𡁶儔�桀聦����舐兛憓�憭㗇㺭 NET_NICOVIDEO_EMAIL �桀�扎�坿�𢛵�𨰜�整�踺�� �腈�䎚�踺�剹���芥�㻫�䎚�啜����塩�� undef ���𨰜�剹�䎚�整�踺�� �汿�潦���朞�瘙��𨰜�����具�踺�卝�萸�扎���柴�喋�喋���喋���怒�����艾�胯���准�啜�扎�喋���閬��芥���聦��������𨳍�整�踺�� 敺瓐���艾�� email �𨳍���� password �胯���𧊋閮剖�𠾼�諹迂摰嫘�𨰻�䎚�整�踺�� get_password �萸�扎���怒�准�啜�扎�喋�踺�钅�䜘�怨�瘙��𨰻�䎚�卝�~�潦�怒�U�剹�研�嫘�怠紋�踺�卝�㻫�嫘�胯�潦�剹�鍦�硋�𨰜�𨰜�整�踺�䎚�� �𨰻���潦�怒�� password �峕𧊋摰𡁶儔�桀聦����舐兛憓�憭㗇㺭 NET_NICOVIDEO_PASSWORD �桀�扎�坿�𢛵�𨰜�整�踺�� �腈�䎚�踺�剹���芥�㻫�䎚�啜����塩�� undef ���𨰜�剹�䎚�整�踺�� get_delay ���𠾼�踺�卝�U�胯�颯�嫘�桅�瓐�怠榆�埈�麄�������研�斤�鉝�鍦�硋�𨰜�𨰜�整�踺�� �𨰻���潦�怒�� delay �峕𧊋摰𡁶儔�桀聦����舐兛憓�憭㗇㺭 NET_NICOVIDEO_DELAY �桀�扎�坿�𢛵�𨰜�整�踺�� �𨰻���芥�㻫�䎚�啜�����𨰻�押�怒���� 1 ���𨰜�剹�䎚�整�踺�� FETCH METHOD �喋�喋���喋���颯�芥�硔�詻�扼�胯���鍦�硋�𨰜�踺�卝�~�賬���厩黎�� �瓐�柴�怒���氬�芥�柴�~�賬���剹�胯���萸�扎���桀��喋�喋���喋���怠紋敹栶�𨰜�艾�𨳍�𨳍�� �腈�䎚�𠺶�䎚����硋�𨰜�𨰜�麄�喋�喋���喋���坿圾��僐�𨰜�毺�鞉�栶�埝����艾���� Net::NicoVideo::Content �柴�扎�喋�嫘�踴�喋�嫘�坿�𢛵�𨰜�整�踺�� �腈�柴��餈𢛵�𨰻�䎚�卝�芥�硔�詻�扼�胯���桀�瑚�梶��芸��摰嫘�怒�扎���艾�胯�� �喋�喋���喋���桃車憿𠺶�𢛵�具�怒�萸�硔�胯�押�嫘���𡁶儔�𨰻�䎚�艾���卝�麄���� Net::NicoVideo::Content 隞乩�卝�桀��萸�硔�胯�押�嫘�鍦��扼�𨰜�虫�卝�𨰻���� fetch_thumbinfo(video_id) video_id �恍硄�踺�� Thumbinfo �芥�硔�詻�扼�胯���鍦�硋�𨰜�𨰜�整�踺�� �芥�� Thumbinfo �鍦�𨰜�讠�箝�怒���准�啜�扎�喋�臬�閬����𨳍�整�䜘�瓐�� fetch_flv(video_id) video_id �恍硄�踺�� Flv �芥�硔�詻�扼�胯���鍦�硋�𨰜�𨰜�整�踺�� fetch_watch(video_id) video_id �恍硄�踺�� Watch �芥�硔�詻�扼�胯���鍦�硋�𨰜�𨰜�整�踺�� Watch �芥�硔�詻�扼�胯���臭赫�喟��芥���柴�扼��摰罸�䜘�臬�閧𤫇�𠾼�潦�詻�詻�U�胯�颯�嫘�𨰜�� �腈�瓐�卝�匧�𨰜�剹�䎚�𧢲���𥼚�埝����麄�喋�喋���喋���颯�芥�硔�詻�扼�胯���扼�踺�� �瓐�䎚�胯���萸�扎���怠紋�𨰜�艾���胯�押�扎�U�喋�����閧𤫇�㘾魿閬扼�踺�卝�瓐�具�垍內�𨰜�整�踺�� �腈�𨰜�艾�腈�格𥲤�贝�𠺶���胯�� fetch_video �鍦鐤�嗥凒��溻�怠�閬��芥�瓐�具�怒�芥���艾���整�踺�� fetch_video(video_id | flv | url, @args) 蝚砌�撘閙㺭�思�汿���� video_id �� flv �芥�硔�詻�扼�胯�����整�麄�舐凒�𦻖�� URL �桀�閧𤫇�柴���潦�踴�鍦�硋�𨰜�𨰜�整�踺�� URL �桀聦������腈�䎚�� flv �芥�硔�詻�扼�胯���卝�匧�硋�𨰜�扼�溻�� URL �扼�芥�㻫�䎚�唳�誩㭠�鉝�芥�𨰻�芥���扼�𨰜������ ��硋�𨰜�𨰜�麄���潦�踴�胯�腈�䔶誑��溻�桀�閙㺭�怒�����血𨤍���𨰻�䎚�𧢲䲮瘜𨰻�𣬚㺭�芥�𨳍�整�踺�� �瓐�柴�~�賬���剹�� LWP::UserAgent �� request �~�賬���剹�典�䎚�塩�扼�� 摰罸�䜘�����具�扼�舫�誯�𡒊��怒�腈�䎚�鍦鐤�瓐�扼���整�踺�� �麄�具���啜��蝚砌���閙㺭�怒�嫘�怒�押�澆�扎�雴�汿���笔聦����胯���腈�䎚�胯�𨰻�~�扎�怒�颯�㻫�嫘�具�𨰜�西圾����𨰻�䎚�� ��閧𤫇�喋�喋���喋���胯�腈�柴�𨰻�~�扎�怒�思�嘥�塩�𨰻�䎚�整�踺�� 閰喋�𨰜�譌�� LWP::UserAgent �� request �~�賬���剹�鍦��扼�𨰜�虫�卝�𨰻���� fetch_thread(video_id | flv, \%options) 蝚砌�撘閙㺭�思�汿���� video_id ���𨰜�譌�� flv �芥�硔�詻�扼�胯���𣬚內�坔�閧𤫇�柴���喋�~�喋���鍦�硋�𨰜�𨰜�整�踺�� 蝚砌���閙㺭�柴�譌���瑯�乓�颯�芥�𨰻�~�研�喋�嫘�胯�芥�𨰜�瑯�扼�喋�扼��甈~�柴�准�潦�典�扎�柴�𠾼�U�鍦�𨰜�穃�硔�𨳍�整�踺�� "chats" => number ���鰵�柴���柴�卝�劐�蓥辣�柴�喋�~�喋���鍦�硋�𨰜�踺�卝�卝�����𨰻�押�怒���� 250 �扼�踺�� "fork" => boolean ��硋�𨰜�踺�卝�喋�~�喋���鉝����閧𤫇�芥�潦�𨳍�潦�柴�喋�~�喋���𨬭�㻫�恍�𣂼�𠾼�𨰜�整�踺�����𨰻�押�怒���臬�賬�扼�踺�� Tag �踴�唳�𦦵揣�柴�麄���柴�~�賬���剹�� fetch_tag_rss(keyword, \%params) keyword �扳���𠾼�𨰜�麄�踴�啜�批�閧𤫇璊𦦵揣�坿�䎚����蝯鞉�栶�� RSS 敶W�譌�扯�𢛵�𨰜�整�踺�� �芥�𨰜�瑯�扼�喋�扼�譌���瑯�乓�芥�𨰻�~�研�喋�� params �雴�汿���衤�卝�䎚�扼�溻�整�踺�� �腈�柴�准�潦�典�扎�舀活�柴�具�𨳍�𨳍�扼�踺�� "sort" => 'f|v|r|m|l' 璊𦦵揣蝯鞉�栶�雴蒂�單𤜯���卝�准�潦�胯�潦�剹�埝���𠾼�𨰜�整�踺�� f ... ��閧阮�𠯫�� v ... �滨��㺭 r ... �喋�~�喋��㺭 m ... �𠺶�扎�芥�嫘��㺭 l ... �滨������ �⊥���𠾼�柴�具�溻�� r �喋�~�喋��㺭�怒�芥�𨳍�整�踺�� "order" => a 銝艾�單𤜯���桅�摨譌�埝���𠾼�𨰜�整�踺�� 'a' �埝���𠾼�踺�卝�� ASCEND �扎�整�𢠃�漤��扼�踺�� �⊥���𠾼�柴�具�溻�� DESCEND �����扼�踺�� "page" => number 璊𦦵揣蝯鞉�栶���𠾼���聦����胯��蝯鞉�栶�臬嗾�扎�卝�柴�𠾼�潦�詻�怠ê̌�䎚�艾�𨳍�𨳍��雿閧𧞅�𤌍�柴�𠾼�潦�詻�鍦�𨰜�卝�卝�埝���𠾼�𨰜�整�踺�� �⊥���𠾼�柴�具�溻�� 1 �𠾼�潦�貊𤌍�鍦�𨰜�整�踺�� �芥�� 1 �𠾼�潦�詻�舀�憭扼�� 32 隞嗚�扼�踺�� fetch_tag_rss_by_recent_post(keyword, page) ��閧阮�𠯫���桅�漤��批�𨰜�卝������ params �鍦𤐄摰𠾼�𨰜�� fetch_tag_rss �鍦鐤�喳枂�踺�瑯�扼�潦���怒�����扼�踺�� 撘閙㺭�怒�胯�踴�啜�具���芥�𨰜�瑯�扼�喋�扼�𠾼�潦�貊𧞅�噡�埝���𠾼�𨰜�整�踺�� Mylist RSS �𠺶�扎�芥�嫘���� RSS �鍦�硋�𨰜�踺�卝�麄���柴�~�賬���剹�� fetch_mylist_rss(mylist) fetch_mylist_rss(mylist_id) 撘閙㺭�急���𠾼�𨰜�� mylist �整�麄�� mylist_id �柴�𠺶�扎�芥�嫘���� RSS �雴�脲��踺�卝�喋�喋���喋���颯�芥�硔�詻�扼�胯���坿�𢛵�𨰜�整�踺�� �汿�潦���𡁻�𧼮�祇�卝�柴�𠺶�扎�芥�嫘���扼�����萸�扎���怒�准�啜�扎�喋�𨰜�艾���卝�瓐�具�扼���腈�䎚�鍦�𨰜�衤�卝�䎚�扼�溻�整�辷������ NicoAPI BASE NicoAPI �詻�U�胯�颯�嫘�踺�卝�麄���桐�见𧑐�鍦�𨰜�卝�麄���柴�~�賬���厩黎�� NicoAPI �胯�𠺶�扎�芥�嫘���𠺶�� AJAX ��𧢲挾�批�𨰜�讠�箝�� JavaScript �批�蠘��𨰻�䎚�艾���卝�押�扎�硔�押�芥�桀�滚�滨征��瓐�扼�� �𠺶�扎�芥�嫘���𠺶�柴���潦�踴�桀�硋�𨰜���凒�鰵����𢠃膄�芥�押�柴�~�賬���剹�埝����艾���整�踺�� �腈�𨰜�艾����硋�𨰜�踺�卝�麄���柴�~�賬���劐誑憭硔�桀�蠘�䎚�怒�胯���U�胯�颯�嫘�颯���潦�胯�喋���閬��怒�芥�𨳍�整�踺�� fetch_mylist_page �准�啜�扎�喋�𨰜�艾���卝�艾�潦�嗚�柴�䎚�𠺶�扎�芥�嫘���溻�𠾼�潦�詻�鍦�硋�𨰜�𨰜�� �腈�柴�𠾼�潦�詻�坿圾��僐�𨰜�毺�鞉�栶�埝��� Net::NicoVideo::Content::MylistPage �芥�硔�詻�扼�胯���坿�𢛵�𨰜�整�踺�� 銝颯�怒�U�胯�颯�嫘�颯���潦�胯�喋�鍦�𨰜�卝�麄���柴���柴�扼�踺�� fetch_mylist_item(video_id) �准�啜�扎�喋�𨰜�艾���卝�艾�潦�嗚�扼�� video_id �怠紋�踺�卝�䎚�𠺶�扎�芥�嫘���株蕭��𨬭�溻�𠾼�潦�詻�鍦�硋�𨰜�𨰜�� �腈�柴�𠾼�潦�詻�坿圾��僐�𨰜�毺�鞉�栶�埝��� Net::NicoVideo::Content::MylistItem �芥�硔�詻�扼�胯���坿�𢛵�𨰜�整�踺�� �瓐�䎚�怒���� video_id �桀�閧𤫇�怠紋�踺�� "item_id" �𨳍���� "item_type" �鍦�𨰜�衤�卝�䎚�扼�溻�整�踺�� �芥�� "item_type" �胯����閧𤫇�怠紋�𨰜�艾�胯�潦�� "0" ��𤐄摰𠾼�桀�扎�具�芥���艾���整�踺�䎚�� �瓐�柴�~�賬���剹�扼�胯�腈�䎚�鉝�芥�胯�具�嫘���𨰜�血�𨰜�麄�𠾼�潦�詻�柴�喋�喋���喋����摰嫘�卝�匧�閧��怠�硋�𨰜�𨰜�整�踺�� �整�麄���腈�柴�𠾼�潦�詻�扼�胯�U�胯�颯�嫘�颯���潦�胯�喋���𨰜�剹�䎚�卝�柴�扼�扎���扼�怒�腈�䎚����硋�𨰜�𨰜�整�踺�� NicoAPI.MylistGroup NicoAPI.MylistGroup �柴�~�賬���厩黎�� �𠺶�扎�芥�嫘���颯�啜�怒�潦�𨰜�埝�滢�栶�踺�卝�~�賬���厩黎�扼�踺�� �瓐�䎚�剹�柴�~�賬���剹�扼��雿𨰻�卝�鍦�硋�𨰜�踺�卝�瓐�� *隞亙��* �桀�蠘�䎚�怒�胯�� �U�胯�颯�嫘�颯���潦�胯�喋���閬��怒�芥�𨳍�整�踺�� �麄�𨬭�𨰜���潦�胯�喟��裦�𨰜�艾�����腈�䎚�臬���具�扯䌊��閧��怠�硋�𨰜�𨰻�䎚���鍂���剹�䎚�整�踺�� �𨰜�卝�𨰜�踺�扼�怒�U�胯�颯�嫘�颯���潦�胯�喋�埝����艾���见聦����胯���腈�䎚�埝���𠾼�踺�衤�卝�扼�� �U�胯�颯�嫘�颯���潦�胯�喋�桀�硋�𨰜�桃�箝�柴�萸�扎���詻�柴�U�胯�颯�嫘�鉝�芥�譌�嗘�卝�䎚�扼�溻�整�踺�� list_mylistgroup() �准�啜�扎�喋�𨰜�麄�艾�潦�嗚�柴�𠺶�扎�芥�嫘���颯�啜�怒�潦�𨰜�柴�芥�嫘���鍦�硋�𨰜�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.MylistGroup#list �怎㮾敶瓐�𨰜�整�踺�� This is equivalent to NicoAPI.MylistGroup#list. get_mylistgroup(group_id) ����𠾼�𨰜�� grpup_id �柴�𠺶�扎�芥�嫘���颯�啜�怒�潦�𨰜�鍦�硋�𨰜�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.MylistGroup#get �怎㮾敶瓐�𨰜�整�踺�� add_mylistgroup(mylist, token) �准�啜�扎�喋�𨰜�麄�艾�潦�嗚�柴�𠺶�扎�芥�嫘���颯�啜�怒�潦�𨰜�怒�𠺶�扎�芥�嫘���坿蕭��𨬭�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.MylistGroup#add �怎㮾敶瓐�𨰜�整�踺�� update_mylistgroup(mylist, token) �准�啜�扎�喋�𨰜�麄�艾�潦�嗚�柴�𠺶�扎�芥�嫘���颯�啜�怒�潦�𨰜�格���𥼚�埝凒�鰵�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.MylistGroup#update �怎㮾敶瓐�𨰜�整�踺�� remove_mylistgroup(mylist, token) ����𠾼�𨰜�麄�𠺶�扎�芥�嫘���鉝�准�啜�扎�喋�𨰜�麄�艾�潦�嗚�柴�𠺶�扎�芥�嫘���颯�啜�怒�潦�𨰜�卝�匧�𢠃膄�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.MylistGroup#remove �怎㮾敶瓐�𨰜�整�踺�� delete_mylistgroup(mylist, token) remove_mylistgroup �柴�具�扎�芥�U�嫘�扼�踺�� NicoAPI.Mylist NicoAPI.Mylist �柴�~�賬���厩黎�� �𠺶�扎�芥�嫘���柴�U�扎���𨬭�埝�滢�栶�踺�卝�~�賬���厩黎�扼�踺�� �瓐�䎚�剹�柴�~�賬���剹�扼��雿𨰻�卝�鍦�硋�𨰜�踺�卝�瓐�� *隞亙��* �桀�蠘�䎚�怒�胯�� �U�胯�颯�嫘�颯���潦�胯�喋���閬��怒�芥�𨳍�整�踺�� �麄�𨬭�𨰜���潦�胯�喟��裦�𨰜�艾�����腈�䎚�臬���具�扯䌊��閧��怠�硋�𨰜�𨰻�䎚���鍂���剹�䎚�整�踺�� �𨰜�卝�𨰜�踺�扼�怒�U�胯�颯�嫘�颯���潦�胯�喋�埝����艾���见聦����胯���腈�䎚�埝���𠾼�踺�衤�卝�扼�� �U�胯�颯�嫘�颯���潦�胯�喋�桀�硋�𨰜�桃�箝�柴�萸�扎���詻�柴�U�胯�颯�嫘�鉝�芥�譌�嗘�卝�䎚�扼�溻�整�踺�� list_mylist(group) group_id �柴�𠺶�扎�芥�嫘���柴�U�扎���牐�閬扼�鍦�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.Mylist#list �怎㮾敶瓐�𨰜�整�踺�� add_mylist(group, item, [token]) �U�扎���� item �鉝�𠺶�扎�芥�嫘�� mylist �怨蕭��𨬭�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.Mylist#add �怎㮾敶瓐�𨰜�整�踺�� update_mylist(group, item, [token]) �𠺶�扎�芥�嫘�� mylist �柴�U�扎���� item �埝凒�鰵�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.Mylist#update �怎㮾敶瓐�𨰜�整�踺�� remove_mylist(group, item, [token]) �𠺶�扎�芥�嫘�� mylist �柴�U�扎���� item �鍦�𢠃膄�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.Mylist#remove �怎㮾敶瓐�𨰜�整�踺�� delete_mylist(group, item, [token]) remove_mylist �柴�具�扎�芥�U�嫘�扼�踺�� move_mylist(group, target, item, [token]) �𠺶�扎�芥�嫘�� mylist �柴�U�扎���� item �鉝�𠺶�扎�芥�嫘�� target �貊宏��𨰻�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.Mylist#move �怎㮾敶瓐�𨰜�整�踺�� copy_mylist(group, target, item, [token]) �𠺶�扎�芥�嫘�� mylist �柴�U�扎���� item �鉝�𠺶�扎�芥�嫘�� target �詻�喋�𢛵�潦�𨰜�整�踺�� �瓐�䎚�胯�� NicoAPI.Mylist#copy �怎㮾敶瓐�𨰜�整�踺�� UTILITY METHOD �腈�桐�硔�艾�潦�����芥������ through_login(ua) 撘閙㺭�思�汿���麄�艾�潦�嗚�颯�具�潦�詻�扼�喋�� Net::NicoVideo::UserAgent �柴�扎�喋�嫘�踴�喋�嫘�鉝�� �准�啜�扎�喋�颯�𠾼�潦�詻�詨�汿�溻���腈�𨰜�艾�准�啜�扎�喋�坿�䎚���整�踺�� �腈�𨰜�艾���腈�桃�鞉�栶�埝��麄�䜘�笔���柴�艾�潦�嗚�颯�具�潦�詻�扼�喋���坿�𥪜㭂�𨰜�整�踺�� 撘閙㺭�思�汿���麄�扎�喋�嫘�踴�喋�嫘�具��餈𥪜㭂�𨰻�䎚�卝�扎�喋�嫘�踴�喋�嫘�臬�䎚�塩�扎�喋�嫘�踴�喋�嫘�扼�踺�� �詨�讠��怒�胯��甈~�柴�����思蝙�譌�䎚�整�踺�� �准�啜�扎�喋���閬��芥�𠾼�潦�詻�鉝���整�𠾼�准�啜�扎�喋�踺�卝�瓐�具�芥�𨰜�怒�U�胯�颯�嫘�坿岫�踴�� �腈�柴�研�嫘�腈�喋�嫘�卝�剹���准�啜�扎�喋�諹�瘙��𨰻�䎚�艾���衤�卝�垍䰻���麄�具�溻�� �胯�塩���艾�腈�瓐�扼�准�啜�扎�喋�坿岫�踴�� �腈�𨰜�艾�准�啜�扎�喋�𨰜�毺𠶖�卝�扼�喋�喋���喋���埝㺿���血�硋�𨰜�𨰜�整�踺�� $res = $ua->request_mylist_rss($mylist); unless( $res->is_authflagged ){ # if not logged-in $ua = $self->through_login($ua); # login $res = $ua->request_mylist_rss($mylist); # try again } �准�啜�扎�喋�怠仃��𨰜�𨰜�罸�䜘�� croak �𨰻�䎚�整�踺�� download(video_id, file) ��閧𤫇�𨰻�~�扎�怒�鉝���艾�喋�准�潦�剹�踺�卝�麄���桐����格挾��硔�𨳍�鉝�整�具���麄�� �瑯�扼�潦���怒�����扼�踺�� 敹踺�𨰜�����怒�胯���胯�喋�押�扎�𨳍�潦�扼�𦠜�䜘�踴�桀�閧𤫇�鉝���艾�喋�准�潦�剹�扼�溻�整�踺�� 甈~�柴�����恬�� $ perl -MNet::NicoVideo -e 'Net::NicoVideo->new->download(@ARGV)' \ smNNNNNN ./smile.mp4 �麄�𨬭�𨰜���瓐�䎚�卝�㕑狀��汿�踺�讠兛憓�憭㗇㺭�雴�����颯�����𨰜�艾�𨳍�誩�閬��䎚���卝�扼�𨰜������ �汿�潦���𠾼�瓐�桐�卝�扼�胯���枂��䜘�𨰻�~�扎�怒�� MP4 �刻�贝�𨳍�𨰜�行𧚔撘萄�僐�� mp4 �具�𨰜�艾���整�踺�䎚�� �卝�喋�卝�喳�閧𤫇�扳胶�譌�䎚�艾���见�閧𤫇�柴�~�����U�颯�𨰻�~�扎�怒�胯�� MP4 �卝���𨰜�䎚�整�䜘�瓐�䎚�� �腈���扼�芥���卝���𨰜�䎚�整�䜘�瓐���𣶹�銁�䰻�剹�䎚�艾���卝�柴�� MP4, FLV �整�麄�� SWF �柴���𠾼�䎚�卝�扼�踺�� �押�桃車憿𠺶�卝�胯����溻������ Thumbinfo �鍦�硋�𨰜�𨰜�艾���腈�桀��摰嫘�卝�匧ế�鱏�踺�卝�瓐�具���扼�溻�整�踺�� ENVIRONMENT VARIABLE NET_NICOVIDEO_EMAIL NET_NICOVIDEO_PASSWORD NET_NICOVIDEO_DELAY �瓐�䎚�剹�格�汿�剹�卝�芥�见�滚�溻�桃兛憓�憭㗇㺭�䎚���腈�桀�溻�桃內�踺�具�𨳍�𨳍�桀蝴�𠧧�扳�匧䎺�扼�踺�� SEE ALSO LWP::UserAgent Net::NicoVideo::Content Net::NicoVideo::UserAgent REPOSITORY Net::NicoVideo �� Github �怒�䜘�嫘���𨰻�䎚���腈�桐�𨳍�折�讠惣�屸�脯���剹�䎚�艾���整�踺�� <https://github.com/hiroaki/Net-NicoVideo> �僐�唳���𥼚���㻫������瞈����柴�喋�~�喋���埝�栞�汿�𨰜�整�踺�� AUTHOR WATANABE Hiroaki <hwat@cpan.org> LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.