fake-useragent
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/fake-useragent package

1.0.1 • Public • Published

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)
});
 

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i fake-useragent

      Weekly Downloads

      24,818

      Version

      1.0.1

      License

      Apache-2.0

      Last publish

      Collaborators

      • thiennq