{"id":18565124,"url":"https://github.com/aero25x/random-user-agents","last_synced_at":"2025-10-25T16:40:06.179Z","repository":{"id":246492723,"uuid":"821294996","full_name":"Aero25x/random-user-agents","owner":"Aero25x","description":"Randomize your user agents in your script to make yourself less noticeable","archived":false,"fork":false,"pushed_at":"2024-07-28T12:46:31.000Z","size":34,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-07-28T13:38:52.217Z","etag":null,"topics":["js-useragent","python-user-agent","python-useragent","python-users","random-user","random-user-agent","random-useragents","rust","rust-random-user-agent","rust-user-agent","ts-useragent","ua-generator","user-agent","user-agent-generator","useragent","useragent-changer","useragent-generator","useragent-parser","useragents"],"latest_commit_sha":null,"homepage":"https://t.me/hidden_coding","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aero25x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-28T08:16:41.000Z","updated_at":"2024-07-28T13:38:59.275Z","dependencies_parsed_at":null,"dependency_job_id":"edd12364-bac9-4d56-a607-f80d87dd31e5","html_url":"https://github.com/Aero25x/random-user-agents","commit_stats":null,"previous_names":["aero25x/random-user-agents"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aero25x%2Frandom-user-agents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aero25x%2Frandom-user-agents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aero25x%2Frandom-user-agents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aero25x%2Frandom-user-agents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aero25x","download_url":"https://codeload.github.com/Aero25x/random-user-agents/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223424451,"owners_count":17142768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["js-useragent","python-user-agent","python-useragent","python-users","random-user","random-user-agent","random-useragents","rust","rust-random-user-agent","rust-user-agent","ts-useragent","ua-generator","user-agent","user-agent-generator","useragent","useragent-changer","useragent-generator","useragent-parser","useragents"],"created_at":"2024-11-06T22:17:49.881Z","updated_at":"2025-10-25T16:40:06.170Z","avatar_url":"https://github.com/Aero25x.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random User Agent Generator - Python, JavaScript, Rust, TypeScript, Go\n\n[![Join our Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge\u0026logo=telegram\u0026logoColor=white)](https://t.me/hidden_coding)\n[![GitHub](https://img.shields.io/badge/GitHub-181717?style=for-the-badge\u0026logo=github\u0026logoColor=white)](https://github.com/aero25x)\n[![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=x\u0026logoColor=white)](https://x.com/aero25x)\n[![YouTube](https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge\u0026logo=youtube\u0026logoColor=white)](https://www.youtube.com/@flaming_chameleon)\n[![Reddit](https://img.shields.io/badge/Reddit-FF3A00?style=for-the-badge\u0026logo=reddit\u0026logoColor=white)](https://www.reddit.com/r/HiddenCode/)\n[![GitHub Stars](https://img.shields.io/github/stars/Aero25x/random-user-agents?style=for-the-badge)](https://github.com/Aero25x/random-user-agents/stargazers)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n\n\u003e **Generate realistic random user agents for web scraping, browser automation, and testing. Supports Chrome, Firefox, Safari on Android, iOS, Windows, macOS, Linux, and Ubuntu devices.**\n\n🌐 **[Try Online Generator](https://multitools.ovh/random-user-agent-generator/)** | 📚 **[Documentation](#usage)** | 🤝 **[Contributing](#contributing)**\n\n## 🚀 Why Random User Agent Generator?\n\n**Random User Agent Generator** is a lightweight, cross-platform library for generating authentic browser user agent strings. Perfect for:\n\n- 🕷️ **Web Scraping** - Rotate user agents to avoid detection and blocking\n- 🤖 **Browser Automation** - Selenium, Puppeteer, Playwright testing with realistic agents\n- 🧪 **API Testing** - Test endpoints with different client configurations\n- 🔒 **Privacy Tools** - Mask browser fingerprints and enhance anonymity\n- 📊 **Analytics Testing** - Simulate traffic from various devices and browsers\n\n### ✨ Key Features\n\n✅ **Multi-language support** - Python, JavaScript, TypeScript, Rust, Go  \n✅ **Realistic user agents** - Based on real browser version distributions  \n✅ **Device targeting** - Android, iOS, Windows, macOS, Linux, Ubuntu  \n✅ **Browser selection** - Chrome, Firefox, Safari, Edge support  \n✅ **Zero dependencies** - Lightweight and fast  \n✅ **MIT License** - Free for commercial use  \n✅ **Actively maintained** - Regular updates with latest browser versions  \n\n## 📦 Installation\n\n### Python (pip)\n\n```bash\ngit clonse https://github.com/Aero25x/random-user-agents.git\n```\n\n```python\nfrom random_user_agents import generate_random_user_agent\n\n# Generate random user agent\nuser_agent = generate_random_user_agent()\nprint(user_agent)\n\n# Specific device and browser\nandroid_chrome = generate_random_user_agent(device_type='android', browser_type='chrome')\nios_safari = generate_random_user_agent(device_type='ios', browser_type='safari')\n```\n\n### JavaScript / Node.js (npm)\n\n```bash\ngit clonse https://github.com/Aero25x/random-user-agents.git\n```\n\n```javascript\nconst { generateRandomUserAgent } = require('random-user-agents');\n\n// Random user agent\nconsole.log(generateRandomUserAgent());\n\n// Chrome on Windows\nconsole.log(generateRandomUserAgent('windows', 'chrome'));\n\n// Firefox on Linux\nconsole.log(generateRandomUserAgent('linux', 'firefox'));\n```\n\n### TypeScript\n\n```bash\ngit clonse https://github.com/Aero25x/random-user-agents.git\n```\n\n```typescript\nimport { generateRandomUserAgent } from 'random-user-agents';\n\nconst userAgent: string = generateRandomUserAgent('android', 'chrome');\nconsole.log(userAgent);\n```\n\n### Rust (Cargo)\n\n```bash\ngit clonse https://github.com/Aero25x/random-user-agents.git\n```\n\n```rust\nuse random_user_agents::generate_random_user_agent;\n\nfn main() {\n    let user_agent = generate_random_user_agent(None, None);\n    println!(\"{}\", user_agent);\n    \n    // Android Chrome\n    let android_ua = generate_random_user_agent(Some(\"android\"), Some(\"chrome\"));\n    println!(\"{}\", android_ua);\n}\n```\n\n### Go (Golang)\n\n```bash\ngo get github.com/Aero25x/random-user-agents\n```\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    rua \"github.com/Aero25x/random-user-agents\"\n)\n\nfunc main() {\n    // Random user agent\n    userAgent := rua.GenerateRandomUserAgent(nil, nil, nil, nil)\n    fmt.Println(userAgent)\n    \n    // Android Chrome with version range\n    deviceType := \"android\"\n    browserType := \"chrome\"\n    chromeVersions := []int{120, 130}\n    \n    ua := rua.GenerateRandomUserAgent(\u0026deviceType, \u0026browserType, chromeVersions, nil)\n    fmt.Println(ua)\n}\n```\n\n### Manual Installation (Git Clone)\n\n```bash\ngit clone https://github.com/Aero25x/random-user-agents.git\ncd random-user-agents\n```\n\n## 💡 Usage Examples\n\n### Web Scraping with Python (Requests)\n\n```python\nimport requests\nfrom random_user_agents import generate_random_user_agent\n\nheaders = {\n    'User-Agent': generate_random_user_agent()\n}\n\nresponse = requests.get('https://example.com', headers=headers)\nprint(response.status_code)\n```\n\n### Selenium Browser Automation\n\n```python\nfrom selenium import webdriver\nfrom random_user_agents import generate_random_user_agent\n\noptions = webdriver.ChromeOptions()\noptions.add_argument(f'user-agent={generate_random_user_agent(\"windows\", \"chrome\")}')\n\ndriver = webdriver.Chrome(options=options)\ndriver.get('https://example.com')\n```\n\n### Puppeteer with JavaScript\n\n```javascript\nconst puppeteer = require('puppeteer');\nconst { generateRandomUserAgent } = require('random-user-agents');\n\n(async () =\u003e {\n    const browser = await puppeteer.launch();\n    const page = await browser.newPage();\n    \n    await page.setUserAgent(generateRandomUserAgent('windows', 'chrome'));\n    await page.goto('https://example.com');\n    \n    await browser.close();\n})();\n```\n\n### Axios HTTP Client\n\n```javascript\nconst axios = require('axios');\nconst { generateRandomUserAgent } = require('random-user-agents');\n\naxios.get('https://api.example.com', {\n    headers: {\n        'User-Agent': generateRandomUserAgent()\n    }\n}).then(response =\u003e {\n    console.log(response.data);\n});\n```\n\n### Fetch API (Browser/Node.js)\n\n```javascript\nfetch('https://api.example.com', {\n    headers: {\n        'User-Agent': generateRandomUserAgent('windows', 'firefox')\n    }\n})\n.then(response =\u003e response.json())\n.then(data =\u003e console.log(data));\n```\n\n## 🎯 Supported Configurations\n\n### Device Types\n- `android` - Android smartphones and tablets\n- `ios` - iPhone and iPad devices\n- `windows` - Windows desktop (7, 10, 11)\n- `macos` - macOS desktop\n- `linux` - Linux distributions\n- `ubuntu` - Ubuntu Linux\n\n### Browser Types\n- `chrome` - Google Chrome (80-130)\n- `firefox` - Mozilla Firefox (90-125)\n- `safari` - Apple Safari (iOS and macOS)\n- `edge` - Microsoft Edge\n\n### Example Output\n\n```\nMozilla/5.0 (Linux; Android 13; SM-S908B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36\n\nMozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1\n\nMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36\n\nMozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0\n```\n\n## 🔧 Advanced Usage\n\n### Custom Version Ranges (Go)\n\n```go\nchromeVersions := []int{115, 120}  // Chrome 115 to 120\nfirefoxVersions := []int{100, 110} // Firefox 100 to 110\n\nuserAgent := GenerateRandomUserAgent(nil, nil, chromeVersions, firefoxVersions)\n```\n\n### Batch Generation (Python)\n\n```python\nfrom random_user_agents import generate_random_user_agent\n\n# Generate 100 unique user agents\nuser_agents = [generate_random_user_agent() for _ in range(100)]\n\n# Generate mobile-only user agents\nmobile_agents = [\n    generate_random_user_agent(device_type=device) \n    for device in ['android', 'ios'] * 50\n]\n```\n\n### Rate Limiting Protection\n\n```python\nimport time\nimport random\nfrom random_user_agents import generate_random_user_agent\n\nfor url in urls:\n    headers = {'User-Agent': generate_random_user_agent()}\n    response = requests.get(url, headers=headers)\n    \n    # Random delay between requests\n    time.sleep(random.uniform(1, 3))\n```\n\n## 🛠️ Useful Tools \u0026 Resources\n\n| Tool | Description | Link |\n|------|-------------|------|\n| 🌐 **User Agent Generator** | Online generator with copy function | [Open Tool](https://multitools.ovh/random-user-agent-generator/) |\n| 🧬 **Base64 Converter** | Encode/decode Base64 strings | [Open Tool](https://multitools.ovh/base64-converter/) |\n| 🔍 **RegEx Validator** | Test and validate Regular Expressions | [Open Tool](https://multitools.ovh/regex-validator/) |\n| 🔐 **JWT Decoder** | Decode and verify JSON Web Tokens | [Open Tool](https://multitools.ovh/jwt-converter/) |\n| ⏱️ **Timestamp Converter** | Convert Unix timestamps | [Open Tool](https://multitools.ovh/timestamp/) |\n| 🌎 **Time Zone Converter** | World time zone conversion | [Open Tool](https://multitools.ovh/world-time-zone/) |\n\n## 🤝 Contributing\n\nContributions are welcome! Here's how you can help:\n\n1. 🍴 Fork the repository\n2. 🌿 Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. ✅ Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. 📤 Push to the branch (`git push origin feature/AmazingFeature`)\n5. 🎉 Open a Pull Request\n\n### Development Setup\n\n```bash\n# Clone the repository\ngit clone https://github.com/Aero25x/random-user-agents.git\ncd random-user-agents\n\n# Install dependencies\npip install -r requirements.txt  # Python\nnpm install                       # JavaScript/TypeScript\ncargo build                       # Rust\ngo mod download                   # Go\n```\n\n## 📝 License\n\nThis project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.\n\nFree for personal and commercial use, modification, and distribution.\n\n## 🌟 Star History\n\nIf this project helped you, please consider giving it a ⭐️ on GitHub!\n\n[![Star History Chart](https://api.star-history.com/svg?repos=Aero25x/random-user-agents\u0026type=Date)](https://star-history.com/#Aero25x/random-user-agents\u0026Date)\n\n## 📞 Support \u0026 Contact\n\n- 💬 **Telegram Community**: [@hidden_coding](https://t.me/hidden_coding)\n- 🐛 **Bug Reports**: [GitHub Issues](https://github.com/Aero25x/random-user-agents/issues)\n- 💡 **Feature Requests**: [GitHub Discussions](https://github.com/Aero25x/random-user-agents/discussions)\n- 📧 **Email**: Contact via GitHub profile\n\n## 🔗 Related Projects\n\n- [fake-useragent](https://github.com/fake-useragent/fake-useragent) - Python user agent faker\n- [user-agents](https://github.com/intoli/user-agents) - JavaScript user agent parser\n- [random-useragent](https://github.com/skratchdot/random-useragent) - Node.js random user agents\n\n## 📊 Statistics\n\n![GitHub repo size](https://img.shields.io/github/repo-size/Aero25x/random-user-agents)\n![GitHub language count](https://img.shields.io/github/languages/count/Aero25x/random-user-agents)\n![GitHub top language](https://img.shields.io/github/languages/top/Aero25x/random-user-agents)\n![GitHub last commit](https://img.shields.io/github/last-commit/Aero25x/random-user-agents)\n![GitHub issues](https://img.shields.io/github/issues/Aero25x/random-user-agents)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/Aero25x/random-user-agents)\n\n---\n\n**Made with ❤️ by [Aero25x](https://github.com/aero25x)**\n\nKeywords: user agent generator, random user agent, fake user agent, web scraping, browser automation, selenium user agent, puppeteer user agent, playwright, http headers, user agent string, mobile user agent, desktop user agent, chrome user agent, firefox user agent, safari user agent, android user agent, ios user agent, windows user agent, linux user agent, python user agent, javascript user agent, rust user agent, golang user agent, typescript user agent, web crawler, bot detection bypass, anti bot, scraping tool, automation testing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faero25x%2Frandom-user-agents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faero25x%2Frandom-user-agents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faero25x%2Frandom-user-agents/lists"}