
what-user-agent - humanizes user-agent strings
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 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
All links, in order of mention:
- what-user-agent: https://github.com/jaygooby/what-user-agent
- whatismybrowser.com: https://whatismybrowser.com
- developers.whatismybrowser.com/api/signup/basic: https://developers.whatismybrowser.com/api/signup/basic
Recent posts:
- Patch for aarch64 (aka arm64) openssl 1.0.2 'relocation R_AARCH64_PREL64 against symbol OPENSSL_armcap_P error'
- TIL: the `NO_COLOR` informal standard to suppress ANSI colour escape codes
- Copy the contents of a branch into an existing git branch without merging
- Adding search to a static Jekyll site using pagefind
- asdf, python and automatically enabling virtual envs