How to use the random-http-useragent.configure function in random-http-useragent

To help you get started, we’ve selected a few random-http-useragent examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hfreire / watch-rtp-play / src / http-request.js View on Github external
constructor (options = {}) {
    this._options = _.defaults(options, defaultOptions)

    this._request = Promise.promisifyAll(request.defaults(this._options.request))

    RandomUserAgent.configure({ maxAge: 600000, preFetch: true })
  }
github hfreire / browser-as-a-service / src / browser.js View on Github external
constructor () {
    this._options = _.defaultsDeep({}, defaultOptions)

    RandomHttpUserAgent.configure(_.get(this._options, 'random-http-useragent'))
  }
github hfreire / facebook-login-for-robots / src / facebook-login-for-robots.js View on Github external
constructor (options = {}) {
    this._options = _.defaultsDeep({}, options, defaultOptions)

    this._perseverance = new Perseverance(_.get(this._options, 'perseverance'))

    RandomHttpUserAgent.configure(_.get(this._options, 'random-http-useragent'))
  }

random-http-useragent

Get a random and legit user-agent for your HTTP client

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Popular random-http-useragent functions

Similar packages