Skip to content

Commit

Permalink
Adds detection for various bots and improves detection for Googlebot (#…
Browse files Browse the repository at this point in the history
…7551)

* Improves detection for Googlebot
* Update Googlebot urls
* Adds detection for Spawning AI
* Improves generic bot regex
* Adds detection for Domain Research Project
* Adds detection for VK Robot
* Improves generic bot regex
  • Loading branch information
liviuconcioiu authored Jan 9, 2024
1 parent b9d3650 commit 52346ab
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 102 deletions.
4 changes: 2 additions & 2 deletions Tests/DeviceDetectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,10 @@ public function testGetInfoFromUABot(): void
'bot' => [
'name' => 'Googlebot',
'category' => 'Search bot',
'url' => 'http://www.google.com/bot.html',
'url' => 'https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers',
'producer' => [
'name' => 'Google Inc.',
'url' => 'http://www.google.com',
'url' => 'https://www.google.com/',
],
],
];
Expand Down
4 changes: 2 additions & 2 deletions Tests/Parser/BotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public function testGetInfoFromUABot(): void
$expected = [
'name' => 'Googlebot',
'category' => 'Search bot',
'url' => 'http://www.google.com/bot.html',
'url' => 'https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers',
'producer' => [
'name' => 'Google Inc.',
'url' => 'http://www.google.com',
'url' => 'https://www.google.com/',
],
];
$botParser = new Bot();
Expand Down
Loading

0 comments on commit 52346ab

Please sign in to comment.