NAME
Novel::Robot
DESCRIPTION
小说下载器
支持站点
Jjwxc : 绿晋江 http://www.jjwxc.net
Dddbbb : 豆豆小说网 http://www.dddbbb.net
SYNOPSIS
#下载小说,存成txt/html
novel_to_txt.pl "http://www.dddbbb.net/html/18451/index.html"
#下载小说,存成html
novel_to_html.pl "http://www.jjwxc.net/onebook.php?novelid=2456"
#下载小说,导入wordpress空间
novel_to_wordpress.pl -b "http://www.jjwxc.net/onebook.php?novelid=2456" -c 原创 -w http://xxx.xxx.com -u xxx -p xxx
#批量处理小说(支持to TXT/HTML/...)
NOVEL_TO_ANY.PL -W "HTTP://WWW.JJWXC.NET/ONEAUTHOR.PHP?AUTHORID=3243" -M 1 -T html
NOVEL_TO_ANY.PL -S jJWXC -Q 作品 -V 何以笙箫默 -M 1 -T html
#初始化
my $xs = Novel::Robot->new();
$xs->set_parser('Jjwxc');
$xs->set_packer('TXT');
#下载整本小说
my $index_url = 'http://www.jjwxc.net/onebook.php?novelid=2456';
$xs->get_book($index_url);
#目录页
my $index_ref = $xs->get_index_ref($index_url);
my $index_ref = $xs->get_index_ref(2456);
#章节页
my $chapter_url = 'http://www.jjwxc.net/onebook.php?novelid=2456&chapterid=2';
my $chapter_ref = $xs->get_chapter_ref($chapter_url, 2);
my $chapter_ref = $xs->get_chapter_ref(2456,2);
#作者页
my $writer_url = 'http://www.jjwxc.net/oneauthor.php?authorid=3243';
my $writer_ref = $xs->get_writer_ref($writer_url);
#查询
my $query_type = '作者';
my $query_value = '顾漫';
my $query_ref = $xs->get_query_ref($query_type, $query_value);
3 POD Errors
The following errors were encountered while parsing the POD:
- Around line 17:
'=item' outside of any '=over'
- Around line 29:
You forgot a '=back' before '=head1'
- Around line 52:
Unknown directive: =HEAD1