3rd-Eden / useragent

Useragent parser for Node.js, ported from browserscope.org
MIT License
897 stars 137 forks source link

Wanted: isCrawler() #54

Closed binarykitchen closed 8 years ago

binarykitchen commented 10 years ago

For reasons similar as https://gist.github.com/Stanback/6998085 I would love to see an isCrawler() function in this package, so that I can code some special exceptions in my single page app.

Thanks!

megadrojatel commented 9 years ago

I would like to use this module, but i need isCrowler too.Are the function planned to enter in future versions?

Thanks

blimmer commented 8 years ago

This would be helpful for me, too. I think, for now you could use family: 'Spider', right?

e.g.

> useragent.parse('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)').device.family === 'Spider'
true

> useragent.parse('Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)').device.family === 'Spider'
true
binarykitchen commented 8 years ago

yeah, something like that would be cool

stevenvachon commented 8 years ago

There is isbot, but I think this library would be more accurate.

binarykitchen commented 8 years ago

thx, yes it is