fake-useragent

generate a fake userAgent for bypass guys

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
fake-useragent
1.0.15 years ago5 years agoMinified + gzip package size for fake-useragent in KB

Readme

Fake User-Agent for nodejs
Just another package for generate a fake userAgent to bypass some guys

How to install

npm install fake-useragent

How to use

const fakeUa = require('fake-useragent');
console.log(fakeUa());

In the real world ^o^

const fakeUa = require('fake-useragent');
const request = require('request');

var url = 'https://www.google.com.vn/search?safe=off&hl=en&q=hello';
var headers = {
  'User-Agent': fakeUa()
};
request.get({ url: url, headers: headers }, function (e, r, body) {
  console.log(r, body)
});