Skip to content

thiennq/fake-user-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published