{"id":13493382,"url":"https://github.com/lorien/user_agent","last_synced_at":"2025-05-15T12:00:18.190Z","repository":{"id":1944987,"uuid":"43215132","full_name":"lorien/user_agent","owner":"lorien","description":"Generator of User-Agent header","archived":false,"fork":false,"pushed_at":"2024-06-24T12:21:07.000Z","size":187,"stargazers_count":339,"open_issues_count":3,"forks_count":62,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-11T20:00:02.612Z","etag":null,"topics":["browser-detection","browser-fingerprinting","user-agent"],"latest_commit_sha":null,"homepage":"","language":"Python","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/lorien.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-26T17:21:45.000Z","updated_at":"2025-03-03T11:58:23.000Z","dependencies_parsed_at":"2024-06-18T12:38:04.880Z","dependency_job_id":"1e12e9d2-83de-49bc-93e4-d08c393aa871","html_url":"https://github.com/lorien/user_agent","commit_stats":{"total_commits":150,"total_committers":9,"mean_commits":"16.666666666666668","dds":"0.19333333333333336","last_synced_commit":"4f7ed71218352246f5177d37787a591af6b2c012"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorien%2Fuser_agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorien%2Fuser_agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorien%2Fuser_agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorien%2Fuser_agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorien","download_url":"https://codeload.github.com/lorien/user_agent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337612,"owners_count":22054253,"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":["browser-detection","browser-fingerprinting","user-agent"],"created_at":"2024-07-31T19:01:14.688Z","updated_at":"2025-05-15T12:00:17.892Z","avatar_url":"https://github.com/lorien.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Documentation for user_agent package\n\n\n[![Test Status](https://github.com/lorien/user_agent/actions/workflows/test.yml/badge.svg)](https://github.com/lorien/user_agent/actions/workflows/test.yml)\n[![Code Quality](https://github.com/lorien/user_agent/actions/workflows/check.yml/badge.svg)](https://github.com/lorien/user_agent/actions/workflows/test.yml)\n[![Type Check](https://github.com/lorien/user_agent/actions/workflows/mypy.yml/badge.svg)](https://github.com/lorien/user_agent/actions/workflows/mypy.yml)\n[![Documentation Status](https://readthedocs.org/projects/user_agent/badge/?version=latest)](http://user-agent.readthedocs.org)\n\n\n## What is user_agent module for?\n\nThis module is for generating random, valid web user agents:\n\n* content of \"User-Agent\" HTTP headers\n* content of `window.navigator` JavaScript object\n\n\n## Usage Example\n\n```\n\u003e\u003e\u003e from user_agent import generate_user_agent, generate_navigator\n\u003e\u003e\u003e from pprint import pprint\n\u003e\u003e\u003e generate_user_agent()\n'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.3; Win64; x64)'\n\u003e\u003e\u003e generate_user_agent(os=('mac', 'linux'))\n'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:36.0) Gecko/20100101 Firefox/36.0'\n\u003e\u003e\u003e pprint(generate_navigator())\n{'app_code_name': 'Mozilla',\n 'app_name': 'Netscape',\n 'appversion': '5.0',\n 'name': 'firefox',\n 'os': 'linux',\n 'oscpu': 'Linux i686 on x86_64',\n 'platform': 'Linux i686 on x86_64',\n 'user_agent': 'Mozilla/5.0 (X11; Ubuntu; Linux i686 on x86_64; rv:41.0) Gecko/20100101 Firefox/41.0',\n 'version': '41.0'}\n\u003e\u003e\u003e pprint(generate_navigator_js())\n{'appCodeName': 'Mozilla',\n 'appName': 'Netscape',\n 'appVersion': '38.0',\n 'platform': 'MacIntel',\n 'userAgent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Firefox/38.0'}\n```\n\n## Command Line Usage\n\n```shell\n$ ua\nMozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:49.0) Gecko/20100101 Firefox/49.0\n\n$ ua -n chrome -e\n{\n  \"oscpu\": \"Linux i686 on x86_64\", \n  \"appName\": \"Netscape\", \n  \"appCodeName\": \"Mozilla\", \n  \"appVersion\": \"55.0.2909.25\", \n  \"platform\": \"X11; Linux i686 on x86_64\", \n  \"userAgent\": \"Mozilla/5.0 (X11; Linux i686 on x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2909.25 Safari/537.36\"\n}\n```\n\n## Installation\n\nRun `pip install -U user_agent`\n\n\n## Documentation\n\nDocumentation is available at http://user-agent.readthedocs.org\n\n\n## Contribution\n\nUse github to submit bug,fix or wish request: https://github.com/lorien/user_agent/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florien%2Fuser_agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florien%2Fuser_agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florien%2Fuser_agent/lists"}