NAME
Novel::Robot
DESCRIPTION
小说下载器
支持站点
Jjwxc : 绿晋江 http://www.jjwxc.net
Dddbbb : 豆豆小说网 http://www.dddbbb.net
SYNOPSIS
下载小说,存成txt/html:
get_book_to_txt.pl http://www.dddbbb.net/html/18451/index.html
get_book_to_html.pl http://www.dddbbb.net/html/18451/index.html
下载小说,导入wordpress空间:
get_book_to_wordpress.pl -b http://www.dddbbb.net/html/18451/index.html -c 言情 -w http://xxx.xxx.com -u xxx -p xxx
取出小说 目录页/章节页/作者页/查询关键字 信息,以JSON格式输出:
get_index_to_json.pl http://www.jjwxc.net/onebook.php?novelid=2456
get_chapter_to_json.pl "http://www.jjwxc.net/onebook.php?novelid=2456&chapterid=2" 2
get_writer_to_json.pl http://www.jjwxc.net/oneauthor.php?authorid=3243
get_query_to_json.pl Jjwxc 作者 顾漫
get_query_to_json.pl Dddbbb 作品 拼图
批量处理小说(支持to txt/html/wordpress ...)
get_books_to_any.pl -w http://www.jjwxc.net/oneauthor.php?authorid=6 -m 1 -t "perl get_book_to_html.pl {url}"
FUNCTION
my $xs = Novel::Robot->new();
#目录页
my $index_url = 'http://www.jjwxc.net/onebook.php?novelid=2456';
my $index_ref = $xs->get_index_ref($index_url);
#目录页
$xs->set_site('Jjwxc');
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);
#章节页
$xs->set_site('Jjwxc');
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);
#查询
$xs->set_site('Jjwxc');
my $query_ref = $xs->get_query_ref($query_type, $query_value);
4 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 31:
'=item' outside of any '=over'
- Around line 67:
You forgot a '=back' before '=head1'
You forgot a '=back' before '=head1'