Skip to content

Suggestion : make a MAX_VERSION available #54

@thewildman

Description

@thewildman

Google doesn't like it when you use an old chrome (you're supposed to auto-update).
So in my code, I can't rely only on weight, and I do it like this :

from ua_generator.data.browsers.chrome import VERSIONS  
max_major = max(v.major for v in VERSIONS)
opts = Options()
opts.version_ranges = {
    'chrome': VersionRange(min_version=max_major),
    ....
}

It works, but it would be nice to have it integrated into the library. Saying for instance that only the latest two versions are acceptable, or something similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions