Codebase list libhttp-browserdetect-perl / ac1e296
fix #119: add researchscan.comsys.rwth-aachen.de as a robot reneeb 5 years ago
3 changed file(s) with 21 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
185185 [ 'quora link preview', 'quora-link-preview' ],
186186 [ 'Qwantify', 'qwantify' ],
187187 [ 'redditbot', 'reddit', ],
188 [ 'researchscan', 'researchscan' ],
188189 [ 'rogerbot', 'rogerbot' ],
189190 [ 'ShowyouBot', 'showyou' ],
190191 [ 'SkypeUriPreview', 'skype-uri-preview' ],
269270 puf => 'puf',
270271 'quora-link-preview' => 'Quora Link Preview',
271272 qwantify => 'Qwantify',
273 researchscan => 'Researchscan RWTH Aachen',
272274 reddit => 'Reddit',
273275 robot => 'robot',
274276 rogerbot => 'Moz',
329331 puf => 'puf',
330332 robot => 'robot',
331333 rubylib => 'ruby-http-library',
334 researchscan => 'researchscan',
332335 slurp => 'yahoo-slurp',
333336 specialarchiver => 'archive-org',
334337 wget => 'wget',
12111214 $r = 'java';
12121215 $robot_tests->{lib} = 1;
12131216 $robot_fragment = 'google';
1217 }
1218 elsif ( index( $ua, 'researchscan.comsys.rwth-aachen.de' ) != -1 ) {
1219 $r = 'researchscan';
12141220 }
12151221
12161222 # These @ROBOT_TESTS were added in 3.15. Some of them may need more
99 my %names = $detect->_robot_names;
1010 my @ids = $detect->all_robot_ids;
1111 my %fixup = $detect->_robot_ids;
12 is( scalar @ids, 72, 'correct number of ids' );
12 is( scalar @ids, 73, 'correct number of ids' );
1313
1414 foreach my $id (@ids) {
1515 subtest $id => sub {
1068110681 "os_string" : "Mac OS X",
1068210682 "os_version" : "10.10",
1068310683 "robot" : null
10684 },
10685 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 Scanning for research (researchscan.comsys.rwth-aachen.de)" : {
10686 "browser_major" : "5",
10687 "browser_minor" : ".0",
10688 "match" : [
10689 "chrome",
10690 "mac",
10691 "macosx",
10692 "researchscan",
10693 "robot",
10694 "webkit"
10695 ],
10696 "robot" : "researchscan",
10697 "robot_name" : "Researchscan RWTH Aachen"
1068410698 },
1068510699 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) brave/0.7.9 Chrome/47.0.2526.73 Electron/0.36.2 Safari/537.36" : {
1068610700 "browser" : "brave",