Skip to content

Commit cb15a61

Browse files
MakaopiorMazov Sergey
and
Mazov Sergey
authored
Added GeedoProductSearch bot (#66)
Co-authored-by: Mazov Sergey <[email protected]>
1 parent d594614 commit cb15a61

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ public static readonly (string Key, string Value)[] Robots =
279279
( "ImagesiftBot", "ImagesiftBot" ),
280280
( "Cotoyogi", "Cotoyogi" ),
281281
( "Applebot", "Applebot" ),
282-
( "360Spider", "360Spider" )
282+
( "360Spider", "360Spider" ),
283+
( "GeedoProductSearch", "GeedoProductSearch" )
283284
];
284285

285286
/// <summary>

Diff for: tests/MyCSharp.HttpUserAgentParser.UnitTests/HttpUserAgentParserTests.cs

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public void BrowserTests(string ua, string name, string version, string platform
155155
[InlineData("Mozilla/5.0 (compatible; Cotoyogi/4.0; +https://ds.rois.ac.jp/center8/crawler/)", "Cotoyogi")]
156156
[InlineData("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15 (Applebot/0.1; +http://www.apple.com/go/applebot)", "Applebot")]
157157
[InlineData("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36; 360Spider", "360Spider")]
158+
[InlineData("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko; GeedoProductSearch; +https://geedo.com/product-search.html) Chrome/134.0.0.0 Safari/537.36", "GeedoProductSearch")]
158159
public void BotTests(string ua, string name)
159160
{
160161
HttpUserAgentInformation uaInfo = HttpUserAgentInformation.Parse(ua);

0 commit comments

Comments
 (0)