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

#解析TXT,转换为HTML

dzs_to_html.pl -w 顾漫 -b 何以笙箫默 -o hy1.txt

#解析TXT,导入wordpress空间

dzs_to_wordpress.pl -W 顾漫 -b 何以笙箫默 -o hy.txt -c 言情 -w http://xxx.xxx.com  -u xxx -p xxx

FUNCTION

#初始化

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);

2 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'