Skip to content

Commit 3452a53

Browse files
MakaopiorMazov Sergey
and
Mazov Sergey
authored
Added Barkrowler, BrightEdge and more crawler User-Agents (#63)
* Added Barkrowler bot User-Agent * Added BrightEdge crawler User-Agent * Added more bot user-agents --------- Co-authored-by: Mazov Sergey <[email protected]>
1 parent bf6637c commit 3452a53

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,11 @@ public static readonly (string Key, string Value)[] Robots =
273273
( "Sistrix", "Sistrix" ),
274274
( "WhatsApp", "WhatsApp" ),
275275
( "CensysInspect", "CensysInspect" ),
276-
( "InternetMeasurement", "InternetMeasurement" )
276+
( "InternetMeasurement", "InternetMeasurement" ),
277+
( "Barkrowler", "Barkrowler" ),
278+
( "BrightEdge", "BrightEdge" ),
279+
( "ImagesiftBot", "ImagesiftBot" ),
280+
( "Cotoyogi", "Cotoyogi" )
277281
];
278282

279283
/// <summary>

tests/MyCSharp.HttpUserAgentParser.UnitTests/HttpUserAgentParserTests.cs

+4
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ public void BrowserTests(string ua, string name, string version, string platform
149149
[InlineData("Mozilla/5.0 (compatible; MojeekBot/0.11; +mojeek.com/bot.html)", "MojeekBot")]
150150
[InlineData("Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)", "CensysInspect")]
151151
[InlineData("Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)", "InternetMeasurement")]
152+
[InlineData("Mozilla/5.0 (compatible; Barkrowler/0.9; +https://babbar.tech/crawler)", "Barkrowler")]
153+
[InlineData("BrightEdge Crawler/1.0 ([email protected])", "BrightEdge")]
154+
[InlineData("Mozilla/5.0 (compatible; ImagesiftBot; +imagesift.com)", "ImagesiftBot")]
155+
[InlineData("Mozilla/5.0 (compatible; Cotoyogi/4.0; +https://ds.rois.ac.jp/center8/crawler/)", "Cotoyogi")]
152156
public void BotTests(string ua, string name)
153157
{
154158
HttpUserAgentInformation uaInfo = HttpUserAgentInformation.Parse(ua);

0 commit comments

Comments
 (0)