Fake-useragent

Latest version: v2.1.0

Safety actively analyzes 722631 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

2.1.0

What's Changed
* Update README.md by matecsaj in https://github.com/fake-useragent/fake-useragent/pull/415
* Refactor UA updater CLI and add GH action to run updates automatically by sebastian-correa in https://github.com/fake-useragent/fake-useragent/pull/404
* Trigger only once per month by melroy89 in https://github.com/fake-useragent/fake-useragent/pull/422
* Speedup `ua_convert` parser by sebastian-correa in https://github.com/fake-useragent/fake-useragent/pull/424
* Bump ruff from 0.8.1 to 0.8.6 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/431
* Bump coverage from 7.6.8 to 7.6.10 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/428
* Bump pytest from 8.3.3 to 8.3.4 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/408
* Bump six from 1.16.0 to 1.17.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/412
* Bump ua-parser-builtins from 0.18.0 to 0.18.0.post1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/411
* Bump click from 8.1.7 to 8.1.8 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/433
* Bump fastjsonschema from 2.20.0 to 2.21.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/435
* Bump importlib-resources from 6.4.5 to 6.5.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/434
* Bump attrs from 24.2.0 to 24.3.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/436
* Update README.md by RakhimovRamis in https://github.com/fake-useragent/fake-useragent/pull/457
* Check for dunder attributes in FakeUserAgent.__getattr__() and make safe_attrs = ['shape'] by default by rjys365 in https://github.com/fake-useragent/fake-useragent/pull/454
* Bump ruff from 0.8.6 to 0.9.10 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/456
* Bump filelock from 3.16.1 to 3.17.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/445
* Bump pyproject-api from 1.6.1 to 1.9.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/444
* Update bundled user agents file by github-actions in https://github.com/fake-useragent/fake-useragent/pull/418
* Bump pyparsing from 3.2.0 to 3.2.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/441

New Contributors
* matecsaj made their first contribution in https://github.com/fake-useragent/fake-useragent/pull/415
* RakhimovRamis made their first contribution in https://github.com/fake-useragent/fake-useragent/pull/457
* rjys365 made their first contribution in https://github.com/fake-useragent/fake-useragent/pull/454
* github-actions made their first contribution in https://github.com/fake-useragent/fake-useragent/pull/418

**Full Changelog**: https://github.com/fake-useragent/fake-useragent/compare/2.0.3...2.1.0

2.0.3

- Fix `importlib-resources` in `dependencies` toml file. **See the `2.0.0` release below [for all the changes that are in v2.0.0](https://github.com/fake-useragent/fake-useragent/releases/tag/2.0.0)!!**

**Full Changelog**: https://github.com/fake-useragent/fake-useragent/compare/2.0.2...2.0.3

2.0.2

Sync latest docs to PyPi. **See the `2.0.0` release below [for all the changes that are in v2.0.0](https://github.com/fake-useragent/fake-useragent/releases/tag/2.0.0)!!**

**Full Changelog**: https://github.com/fake-useragent/fake-useragent/compare/2.0.1...2.0.2

2.0.1

Small patch release after v2.0.0, by adding a requires-python line to the toml file. We only support Python 3.9 or newer.

What's Changed
* Bump validate-pyproject from 0.22 to 0.23 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/393
* Bump coverage from 7.6.4 to 7.6.8 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/398
* Bump ruff from 0.7.3 to 0.8.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/403
* Bump tomli from 2.0.2 to 2.2.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/401
* Specify `__all__` in `__init__.py` to fix pyright support by CNSeniorious000 in https://github.com/fake-useragent/fake-useragent/pull/405

New Contributors
* CNSeniorious000 made their first contribution in https://github.com/fake-useragent/fake-useragent/pull/405

**Full Changelog**: https://github.com/fake-useragent/fake-useragent/compare/2.0.0...2.0.1

2.0.0

Finally, we successfully switched (again) to a new data source from [Intoli](https://intoli.com/), which allows us to have much more user-agent strings again. Thank you all for your support!

**Important:** Keep in mind that v2.0.0 does have some breaking changes like `platform` type "pc" value is now changed to "desktop" (in case you were using this). See below for all breaking changes!

Breaking changes

- OS and browser options are now case sensitive!!
- Possible browser options are: `["Google", "Chrome", "Firefox", "Edge", "Opera"," Safari", "Android", "Yandex Browser", "Samsung Internet", "Opera Mobile",
"Mobile Safari", "Firefox Mobile", "Firefox iOS", "Chrome Mobile", "Chrome Mobile iOS", "Mobile Safari UI/WKWebView",
"Edge Mobile", "DuckDuckGo Mobile", "MiuiBrowser", "Whale", "Twitter", "Facebook", "Amazon Silk"]`
- Most browser strings are **case-sensitive**, except for some common browsers like `firefox`, `edge`, `chrome`, `opera`, `safari`. In these cases you will receive both mobile and non-mobile user-agent strings by default.
- Platforms types (if specified) allowed options are: `["desktop", "mobile", "tablet"]` (no `pc` anymore)
- Possible OS options are now increased to the following list: `["Windows", "Linux", "Ubuntu", "Chrome OS", "Mac OS X", "Android", "iOS"]`. And again case sensitive.

Improved

- `min_percentage` option works again! And uses the `percent` field of the user-agent data

Please read the [README](https://github.com/fake-useragent/fake-useragent) for more examples and options.

What's Changed
* Bump cachetools from 5.3.2 to 5.3.3 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/313
* Bump ruff from 0.3.2 to 0.3.4 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/316
* Bump importlib-resources from 6.1.3 to 6.4.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/317
* Bump black from 24.2.0 to 24.3.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/314
* Bump ruff from 0.3.4 to 0.3.5 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/322
* Bump importlib-metadata from 7.0.2 to 8.0.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/337
* Bump pytest-cov from 4.1.0 to 5.0.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/318
* Bump filelock from 3.13.1 to 3.16.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/343
* Upgrade github actions by melroy89 in https://github.com/fake-useragent/fake-useragent/pull/345
* Bump build from 1.0.3 to 1.2.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/348
* Bump zipp from 3.17.0 to 3.20.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/350
* Bump importlib-metadata from 8.0.0 to 8.5.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/347
* Bump pytest from 8.1.1 to 8.3.3 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/349
* Code & Docs cleanup + Package updates by melroy89 in https://github.com/fake-useragent/fake-useragent/pull/351
* Finish deprecating Python 3.8 by sebastian-correa in https://github.com/fake-useragent/fake-useragent/pull/352
* Add basic type hints to the whole package by sebastian-correa in https://github.com/fake-useragent/fake-useragent/pull/346
* Bump typing-extensions from 4.10.0 to 4.12.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/359
* Bump pyparsing from 3.1.1 to 3.1.4 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/362
* Bump ruff from 0.6.7 to 0.6.8 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/361
* Bump validate-pyproject from 0.16 to 0.20.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/360
* Bump cachetools from 5.3.3 to 5.5.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/358
* Remove mutable defaults and allow more generic types by sebastian-correa in https://github.com/fake-useragent/fake-useragent/pull/357
* Fix and improve ruff configs by sebastian-correa in https://github.com/fake-useragent/fake-useragent/pull/364
* Bump tomli from 2.0.1 to 2.0.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/366
* Bump platformdirs from 4.2.0 to 4.3.6 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/368
* Bump pyproject-hooks from 1.0.0 to 1.2.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/367
* Add Google Style docstrings to codebase by sebastian-correa in https://github.com/fake-useragent/fake-useragent/pull/365
* Bump ruff from 0.6.8 to 0.6.9 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/375
* Bump pyparsing from 3.1.4 to 3.2.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/371
* Bump distlib from 0.3.8 to 0.3.9 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/373
* Bump build from 1.2.2 to 1.2.2.post1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/374
* Bump ruff from 0.6.9 to 0.7.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/385
* Bump validate-pyproject from 0.20.2 to 0.22 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/384
* Bump coverage from 7.6.1 to 7.6.4 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/381
* Bump black from 24.8.0 to 24.10.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/376
* Bump ruff from 0.7.2 to 0.7.3 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/387
* Bump zipp from 3.20.2 to 3.21.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/386
* Bump pytest-cov from 5.0.0 to 6.0.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/389
* Bump packaging from 23.2 to 24.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/388
* Using the new JSONlines format + new data source by melroy89 in https://github.com/fake-useragent/fake-useragent/pull/400

New Contributors
* sebastian-correa made their first contribution in https://github.com/fake-useragent/fake-useragent/pull/352

**Full Changelog**: https://github.com/fake-useragent/fake-useragent/compare/1.5.1...2.0.0

1.5.1

**Fix:** Remove trailing spaces in user agent strings

What's Changed
* Bump pytest from 7.4.3 to 8.1.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/306
* Bump lxml from 4.9.3 to 5.1.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/305
* Bump virtualenv from 20.25.0 to 20.25.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/303
* Bump ruff from 0.2.1 to 0.3.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/304
* Bump typing-extensions from 4.9.0 to 4.10.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/302
* Removed trailing spaces in user agent strings. by BoudewijnZwart in https://github.com/fake-useragent/fake-useragent/pull/308


**Full Changelog**: https://github.com/fake-useragent/fake-useragent/compare/1.5.0...1.5.1

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.