From 81cdbc62008c1c79ba28a9de41c6bc4959b5254f Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 16 Jul 2019 08:33:10 +0100 Subject: [PATCH] Add Outlook --- .gitignore | 1 + httpagentparser/__init__.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0f0a55a..e0b0ecb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.pyc /*.egg-info +settings.json diff --git a/httpagentparser/__init__.py b/httpagentparser/__init__.py index 1b390e7..8167bba 100644 --- a/httpagentparser/__init__.py +++ b/httpagentparser/__init__.py @@ -184,10 +184,15 @@ class Trident(Browser): def getVersion(self, agent, word): return self.trident_to_ie_versions.get(super(Trident, self).getVersion(agent, word)) +# Microsoft Outlook 16.0.4861 +class Outlook(Browser): + look_for = "Microsoft Outlook" + version_markers = [(" ", ";")] + class MSIE(Browser): look_for = "MSIE" - skip_if_found = ["Opera"] + skip_if_found = ["Opera", "Outlook"] name = "Microsoft Internet Explorer" version_markers = [" ", ";"]