Up-to-date simple useragent faker with real world database
Fix: Remove trailing spaces in user agent strings
Full Changelog: https://github.com/fake-useragent/fake-useragent/compare/1.5.0...1.5.1
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.
Full Changelog: https://github.com/fake-useragent/fake-useragent/compare/1.4.0...1.5.0
Full Changelog: https://github.com/fake-useragent/fake-useragent/compare/1.3.0...1.4.0
ua.getRandom
, ua.getFirefox
, ua.getChrome
, ua.getSafari
. And a generic method: ua.getBrowser(..)
(eg. getBrowser('firefox')
)
ua.random
is a more stable interface.os
argument 'windows' to check for both win10
and win7
values (previously only checking on win10
), thus returning more UAsNote: Parameter use_external_data=True
and verify_ssl
are removed. If you use those parameters, just remove it in your code!
use_external_data=True
and verify_ssl
are removed. If you use those parameters, just remove it in your code!pkg_resource
as fallback mechanism in trying to retrieve the local JSON data file