📜  perl 通过 tor 运行 mechanize - Perl 代码示例

📅  最后修改于: 2022-03-11 14:48:11.135000             🧑  作者: Mango

代码示例1
use WWW::Mechanize::Tor; my $mech = WWW::Mechanize::Tor->new(    tor_control_port => 9051,            # empty port on default range(49152 .. 65535)    tor_port         => 9050,            # empty port on default range(49152 .. 65535)    tor_ip           => '127.0.0.1',     # localhost on default    tor_config       => 'path/to/torrc', # tor default config path); if ($mech->rotate_ip) {    say 'got another ip';}else {    say 'Try again?';}