def fromHeaderValue(cls, agentString):
        # Order matters here - MSIE parser will match a ton of browsers.
        for parser in ['GECKO', 'WEBKIT', 'MSIE', 'OPERA']:
            agent = getattr(cls, 'parse_' + parser)(agentString)
            if agent is not None:
                return agent
        return None
Attempt to parse an arbitrary user-agent.
dataset/ETHPy150Open twisted/nevow/nevow/useragent.py/UserAgent.fromHeaderValue