Fake-useragent

Latest version: v1.5.1

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

Scan your dependencies

Page 1 of 3

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

1.5.0

Most important change: The user-agent database has been updated with a more recent list of user agents. It also now comes with mobile UA's, meaning a new parameter: `platforms` has been introduced (see [README.md](https://github.com/fake-useragent/fake-useragent/blob/main/README.md)).

The only down-side is that this new data source didn't contain any usage data, meaning `min_percentage` is not useful anymore. Despite which `min_percentage` value you set, fake-useragent always return all data records for backwards compatibility reasons.

What's Changed
* Bump cryptography from 41.0.5 to 41.0.6 in /cache_scraper by dependabot in https://github.com/fake-useragent/fake-useragent/pull/246
* Bump idna from 3.4 to 3.6 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/245
* Bump twisted from 22.10.0 to 23.10.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/244
* Bump tox from 4.11.3 to 4.11.4 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/247
* Bump cryptography from 41.0.6 to 41.0.7 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/248
* Bump importlib-metadata from 6.8.0 to 7.0.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/249
* Bump virtualenv from 20.24.7 to 20.25.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/250
* Bump ruff from 0.1.6 to 0.1.13 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/263
* Bump isort from 5.12.0 to 5.13.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/258
* Bump typing-extensions from 4.8.0 to 4.9.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/256
* Bump pathspec from 0.11.2 to 0.12.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/255
* Bump platformdirs from 4.0.0 to 4.1.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/252
* Bump cryptography from 41.0.7 to 42.0.0 in /cache_scraper by dependabot in https://github.com/fake-useragent/fake-useragent/pull/271
* Bump importlib-metadata from 7.0.0 to 7.0.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/264
* Bump fastjsonschema from 2.19.0 to 2.19.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/266
* Bump service-identity from 23.1.0 to 24.1.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/268
* Bump coverage from 7.3.2 to 7.4.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/269
* Bump ruff from 0.1.13 to 0.2.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/272
* Bump tzdata from 2023.3 to 2024.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/277
* Bump certifi from 2023.11.17 to 2024.2.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/274
* Bump platformdirs from 4.1.0 to 4.2.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/273
* Bump distlib from 0.3.7 to 0.3.8 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/275
* Bump black from 23.11.0 to 24.1.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/276
* Bump black from 23.11.0 to 24.2.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/279
* Bump scrapy from 2.11.0 to 2.11.1 in /cache_scraper by dependabot in https://github.com/fake-useragent/fake-useragent/pull/280
* Bump tox from 4.11.4 to 4.13.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/283
* Bump scrapy from 2.11.0 to 2.11.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/282
* Bump urllib3 from 2.1.0 to 2.2.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/285
* Bump zope-interface from 6.1 to 6.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/286
* Bump cryptography from 42.0.0 to 42.0.4 in /cache_scraper by dependabot in https://github.com/fake-useragent/fake-useragent/pull/288
* Bump cryptography from 42.0.0 to 42.0.5 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/289
* Bump twisted from 23.10.0 to 24.3.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/291
* Bump pyopenssl from 23.3.0 to 24.0.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/293
* Bump attrs from 23.1.0 to 23.2.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/292
* Bump coverage from 7.4.1 to 7.4.3 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/294
* Bump pytz from 2023.3.post1 to 2024.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/295
* Useragent list update by BoudewijnZwart in https://github.com/fake-useragent/fake-useragent/pull/290
* Create an auto merge dependabot workflow by melroy89 in https://github.com/fake-useragent/fake-useragent/pull/296
* Bump validate-pyproject from 0.15 to 0.16 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/300
* Bump tox from 4.13.0 to 4.14.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/297
* Bump pluggy from 1.3.0 to 1.4.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/299
* Bump importlib-resources from 6.1.1 to 6.1.3 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/301
* Bump importlib-metadata from 7.0.1 to 7.0.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/298

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

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

1.4.0

What's Changed
* Bump urllib3 from 2.0.4 to 2.0.6 in /cache_scraper by dependabot in https://github.com/fake-useragent/fake-useragent/pull/217
* Bump tzlocal from 5.0.1 to 5.1 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/218
* Bump build from 0.10.0 to 1.0.3 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/221
* Bump tldextract from 3.4.4 to 3.6.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/220
* Bump cffi from 1.15.1 to 1.16.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/219
* Bump urllib3 from 2.0.6 to 2.0.7 in /cache_scraper by dependabot in https://github.com/fake-useragent/fake-useragent/pull/226
* Bump click from 8.1.6 to 8.1.7 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/225
* Bump filelock from 3.12.2 to 3.12.4 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/223
* Bump twisted from 22.10.0 to 23.8.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/224
* Bump validate-pyproject from 0.13 to 0.15 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/222
* Bump coverage from 7.3.1 to 7.3.2 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/229
* Bump pyopenssl from 23.2.0 to 23.3.0 by dependabot in https://github.com/fake-useragent/fake-useragent/pull/228
* python 3.12 support by vladkens in https://github.com/fake-useragent/fake-useragent/pull/232
* Bump twisted from 23.8.0 to 23.10.0 in /cache_scraper by dependabot in https://github.com/fake-useragent/fake-useragent/pull/240
* Update packages/fix package conflicts in cache scraper by melroy89 in https://github.com/fake-useragent/fake-useragent/pull/242
* Updated packages of fake useragent by melroy89 in https://github.com/fake-useragent/fake-useragent/pull/243

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

**Full Changelog**: https://github.com/fake-useragent/fake-useragent/compare/1.3.0...1.4.0

1.3.0

- Introducing new `ua.getRandom`, `ua.getFirefox`, `ua.getChrome`, `ua.getSafari`. And a generic method: `ua.getBrowser(..)` (eg. `getBrowser('firefox')`)
- These new properties above allows you to retrieve the whole raw Python dictionary, instead of only the UA string.
- These properties might return different key/values pairs in the future! So `ua.random` is a more stable interface.
- Fix the `os` argument 'windows' to check for both `win10`and `win7` values (previously only checking on `win10`), thus returning more UAs
- Improved user-agent scraper (now also containing Safari browser again)
- Updated browsers.json data file

1.2.1

- Still using the new dataset of course!
- Small improvements in the min_percentage check
- Update all Pip package dependencies

_Note:_ Parameter `use_external_data=True` and `verify_ssl` are **removed**. If you use those parameters, just remove it in your code!

1.2.0

- Updated browser useragent data 🚀
- Allow filters on browser, OS and usage percentage 🚀
- Update the cache scraper to scape the new data source for user-agent strings
- Adapted the code to work with the new JSON data format
- Parameter `use_external_data=True` and `verify_ssl` are **removed**. If you use those parameters, just remove it in your code!

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.