https://github.com/jaygooby/what-user-agent
Humanize user-agent strings using the whatismybrowser.com API
https://github.com/jaygooby/what-user-agent
api bash user-agent
Last synced: about 1 month ago
JSON representation
Humanize user-agent strings using the whatismybrowser.com API
- Host: GitHub
- URL: https://github.com/jaygooby/what-user-agent
- Owner: jaygooby
- License: mit
- Created: 2021-12-15T17:39:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-15T17:55:41.000Z (over 4 years ago)
- Last Synced: 2025-03-21T23:14:16.010Z (over 1 year ago)
- Topics: api, bash, user-agent
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# what-user-agent
A bash script to humanize user-agent strings using the whatismybrowser.com API.
Turn garbage like `Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1` into **Safari 15.1 on iOS 15.1**
Use it like this:
```
$ what-user-agent "Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1"
Safari 15.1 on iOS 15.1
```
Get your free API key at https://developers.whatismybrowser.com/api/signup/basic
Caches lookups so you don't use all your API calls in a month. Clear the cache by rm-ing the `$USER_AGENTS` file, which defaults to `~/.user_agents`