Novel::Robot 小说下载器
Jjwxc
Dddbbb
Nunu
Shunong
TXT
HTML
WordPress
novel_to_txt.pl "http://www.dddbbb.net/html/18451/index.html"
novel_to_html.pl "http://www.jjwxc.net/onebook.php?novelid=2456"
novel_to_wordpress.pl -b "http://www.jjwxc.net/onebook.php?novelid=2456" -c 原创 -w http://xxx.xxx.com -u xxx -p xxx
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
dzs_to_html.pl -w 顾漫 -b 何以笙箫默 -o hy1.txt
dzs_to_wordpress.pl -W 顾漫 -b 何以笙箫默 -o hy.txt -c 言情 -w http://xxx.xxx.com -u xxx -p xxx
my $xs = Novel::Robot->new();
$xs->set_parser('Jjwxc');
$xs->set_packer('HTML');
$xs->set_parser('Jjwxc'); my $index_url = 'http://www.jjwxc.net/onebook.php?novelid=2456'; $xs->get_book($index_url); $xs->set_parser('TXT'); $xs->get_book({ writer => '顾漫', book => '何以笙箫默', path => [ '/somepath/somefile.txt' ] });
$xs->set_parser('Jjwxc'); my $writer_url = 'http://www.jjwxc.net/oneauthor.php?authorid=3243'; my $writer_ref = $xs->{parser}->get_writer_ref($writer_url); my $select_ref = $xs->select_book($writer_ref); my $keyword = '作者'; my $value='顾漫'; $books_ref = $xs->{parser}->get_query_ref($keyword, $value); my $select_ref = $xs->select_book($query_ref);
To install Novel::Robot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Novel::Robot
CPAN shell
perl -MCPAN -e shell install Novel::Robot
For more information on module installation, please visit the detailed CPAN module installation guide.