node-crawler-detect:节点js的实现https

时间:2024-06-07 20:51:53
【文件属性】:

文件名称:node-crawler-detect:节点js的实现https

文件大小:233KB

文件格式:ZIP

更新时间:2024-06-07 20:51:53

JavaScript

安装 npm install crawler-detect 用法 const CrawlerDetect = require ( 'crawler-detect' ) ; // Pass a user agent as a string if ( CrawlerDetect . isCrawler ( 'Mozilla/5.0 (compatible; Sosospider/2.0; +http://help.soso.com/webspider.htm)' ) ) { console . log ( 'crawler user agent detected' ) ; } // Get the name of the bot that matched (if any) CrawlerDetect . isCrawler ( 'Mozilla/5.0 (compatible; S


【文件预览】:
node-crawler-detect-master
----package.json(608B)
----src()
--------spiders.js(18KB)
--------exclusion.js(1010B)
----index.js(826B)
----README.md(848B)
----example.js(549B)
----test()
--------crawlers.txt(215KB)
--------index.js(851B)
--------devices.txt(2.74MB)

网友评论