Skip to content

Releases: fake-useragent/fake-useragent

2.0.3

10 Dec 19:58
5635125
Compare
Choose a tag to compare

Full Changelog: 2.0.2...2.0.3

2.0.2

09 Dec 12:15
dcf9220
Compare
Choose a tag to compare

Sync latest docs to PyPi. See the 2.0.0 release below for all the changes that are in v2.0.0!!

Full Changelog: 2.0.1...2.0.2

2.0.1

07 Dec 13:00
8e1b2de
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: 2.0.0...2.0.1

2.0.0

04 Dec 21:07
561bbfd
Compare
Choose a tag to compare

fake-useragent v2.0.0

Finally, we successfully switched (again) to a new data source from Intoli, 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 for more examples and options.

What's Changed

New Contributors

Full Changelog: 1.5.1...2.0.0

Release v1.5.1 📦

16 Mar 14:26
0e4edb8
Compare
Choose a tag to compare

Fix: Remove trailing spaces in user agent strings

What's Changed

Full Changelog: 1.5.0...1.5.1

Release v1.5.0 📦

08 Mar 22:58
099420c
Compare
Choose a tag to compare

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).

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

New Contributors

Full Changelog: 1.4.0...1.5.0

Release v1.4.0 📦

24 Nov 21:05
7a7d12d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.3.0...1.4.0

Release v1.3.0 📦

02 Oct 21:32
77180e6
Compare
Choose a tag to compare
  • 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 win10and 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

Release v1.2.1 📦

02 Aug 14:04
51d49f9
Compare
Choose a tag to compare
  • 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!

Release v1.2.0 📦

02 Aug 00:01
018ebc9
Compare
Choose a tag to compare
  • 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!