Skip to content

Commit d594614

Browse files
MakaopiorMazov Sergey
and
Mazov Sergey
authored
Added 360Spider bot User-Agent (#65)
Co-authored-by: Mazov Sergey <mazov@indexpro.co.jp>
1 parent 7795a06 commit d594614

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ public static readonly (string Key, string Value)[] Robots =
278278
( "BrightEdge", "BrightEdge" ),
279279
( "ImagesiftBot", "ImagesiftBot" ),
280280
( "Cotoyogi", "Cotoyogi" ),
281-
( "Applebot", "Applebot" )
281+
( "Applebot", "Applebot" ),
282+
( "360Spider", "360Spider" )
282283
];
283284

284285
/// <summary>

tests/MyCSharp.HttpUserAgentParser.UnitTests/HttpUserAgentParserTests.cs

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public void BrowserTests(string ua, string name, string version, string platform
154154
[InlineData("Mozilla/5.0 (compatible; ImagesiftBot; +imagesift.com)", "ImagesiftBot")]
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")]
157+
[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")]
157158
public void BotTests(string ua, string name)
158159
{
159160
HttpUserAgentInformation uaInfo = HttpUserAgentInformation.Parse(ua);

0 commit comments

Comments
 (0)