line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Bot::Netcraft; |
2
|
6
|
|
|
6
|
|
36
|
use strict; |
|
6
|
|
|
|
|
18
|
|
|
6
|
|
|
|
|
152
|
|
3
|
6
|
|
|
6
|
|
26
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
138
|
|
4
|
6
|
|
|
6
|
|
43
|
use Duadua::Util qw//; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
953
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub try { |
7
|
45
|
|
|
45
|
1
|
138
|
my ($class, $d) = @_; |
8
|
|
|
|
|
|
|
|
9
|
45
|
100
|
|
|
|
119
|
if ( index($d->ua, ' NetcraftSurveyAgent/') > -1 ) { |
10
|
2
|
|
|
|
|
7
|
my $h = { |
11
|
|
|
|
|
|
|
name => 'NetcraftSurveyAgent', |
12
|
|
|
|
|
|
|
is_bot => 1, |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
2
|
100
|
|
|
|
6
|
if ($d->opt_version) { |
16
|
1
|
|
|
|
|
4
|
my ($version) = ($d->ua =~ m! NetcraftSurveyAgent/([\d.]+)!); |
17
|
1
|
50
|
|
|
|
5
|
$h->{version} = $version if $version; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
|
|
8
|
return Duadua::Util->set_os($d, $h); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |