agents

0.0.2 • Public • Published

node-user-agents

agents

Quick HTTP user agent headers for slightly-immoral-and-very-improper web scraping. It's so stupidly simple that you could probably write this yourself.

Usage:

npm install node-user-agents
var request = require('request')
    , agents = require('agents');
 
request({'uri':'wikipedia.org','headers':{'User-Agent':agents.randomAgentString()}},function(error,response,body){
    console.log(body);
});
//See? It's like taking candy from a baby.

Working use cases:

  • Scripting HTTP requests to Wikipedia (has terrible bot detection)
  • Any other site that isn't as big as Google to be able to invest in super-smart bot-detection systems.

Non-working use cases:

  • Google (based on IP address and no more than 20 requests in a minute)

Readme

Keywords

Package Sidebar

Install

npm i agents

Weekly Downloads

5

Version

0.0.2

License

BSD

Last publish

Collaborators

  • ericjang