useragent-tool
v1.0.1
Published
Get random User-Agent HTTP Request Head.
Downloads
1
Readme
useragent-tool
Get random User-Agent HTTP Request Head.
Installation
npm install useragent-tool
Usage
In your code, you can getRandomUserAgent:
var uaTool = require("useragent-tool");
var randomUserAgent = uaTool.getRandomUserAgent();
console.log("random useragent :", randomUserAgent);
or you can see the useragent pool:
var userAgentList = uaTool.userAgentList;
console.log("useragent count is :", userAgentList.length);