Aero25x/random-user-agents ? reverse-engineered prompt
Reverse engineered prompt
Build me a small library that generates realistic random browser user agent strings for scraping and browser automation.
I want it to work in Go first, with simple functions I can call to get a random user agent or ask for a specific device and browser, like Android Chrome, iPhone Safari, Windows Firefox, and Linux Chrome. It should return believable strings based on real browser versions, not just fake placeholders, and it should cover Chrome, Firefox, Safari, and Edge across Android, iOS, Windows, macOS, Linux, and Ubuntu.
If it makes sense, also keep the same idea available in JavaScript, TypeScript, Python, Rust, and Ruby so the API feels consistent across languages. Please make it lightweight with no extra dependencies, include a few usage examples in the README, and make sure the output is ready to drop into requests, Selenium, Puppeteer, or fetch calls. If you need to look up current browser formats online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit