1.1.39 β€’ Published 3 years ago

random-http-useragent v1.1.39

Weekly downloads
1,522
License
MIT
Repository
github
Last release
3 years ago

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

npm.io Coverage Status Known Vulnerabilities npm.io Version Downloads

Stores and randomly accesses a HTTP user agent from an available list of user agents in disk.

Features

  • Randomly :zap: pick between 899 unique user agents :white_check_mark:
  • HTTP user agents are stored :floppy_disk: in a disk file to avoid filling up your app's memory space :white_check_mark:
  • File disk reads are optimized :running: to only read as much as needed :white_check_mark:
  • Cache results using memoizee :white_check_mark:
  • Supports Bluebird :bird: promises :white_check_mark:

How to install

npm install random-http-useragent -g

How to use

Use it in your terminal

random-http-useragent

Use it in your app

Get a random user agent

const RandomHttpUserAgent = require('random-http-useragent')

RandomHttpUserAgent.get()
  .then((userAgent) => console.log(userAgent))
  .catch((error) => console.error(error.message))

Cache returned user agents for 2 minutes

const RandomHttpUserAgent = require('random-http-useragent')

RandomHttpUserAgent.configure({ memoizee: { maxAge: 120000 } })

RandomHttpUserAgent.get()
  .then((userAgent) => console.log(userAgent))
  .catch((error) => console.error(error.message))

How to contribute

You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EUR. You can read the contributing guidelines for instructions on how to contribute with code.

All donation proceedings will go to the Sverige fΓΆr UNHCR, a swedish partner of the UNHCR - The UN Refugee Agency, a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.

Used by

  • request-on-steroids - An HTTP client :sparkles: with retry, circuit-breaker and tor support :package: out-of-the-box
  • facebook-login-for-robots - Facebook Login for πŸ€– robots
  • browser-as-a-service - A web browser :earth_americas: hosted as a service, to render your JavaScript web pages as HTML
  • pollmommy - ⭐️ Hack your πŸ™ˆ vote out of πŸ“ˆ Polldaddy surveys - used by πŸ’° BBC, Microsoft, Forbes, Pfizer, IBM

License

Read the license for permissions and limitations.

1.1.39

3 years ago

1.1.38

3 years ago

1.1.37

3 years ago

1.1.36

3 years ago

1.1.34

3 years ago

1.1.35

3 years ago

1.1.33

3 years ago

1.1.32

3 years ago

1.1.31

3 years ago

1.1.30

4 years ago

1.1.29

4 years ago

1.1.28

4 years ago

1.1.27

4 years ago

1.1.26

4 years ago

1.1.25

4 years ago

1.1.24

4 years ago

1.1.23

4 years ago

1.1.22

4 years ago

1.1.21

4 years ago

1.1.20

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago