Last active
January 27, 2018 01:07
-
-
Save yesmar/22f5bb34ab4ae4cd47e94c59fefb0eab to your computer and use it in GitHub Desktop.
Generate random User Agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const ua = fs.readFileSync('ua.txt').toString().split("\n"), | |
agent = ua[Math.floor(Math.random()*ua.length)]; | |
console.log(agent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you clone this repo, run these commands to pull down and ignore
ua.txt
: