diff --git a/lib/woothee/crawler.py b/lib/woothee/crawler.py index 28b2180..25c7253 100644 --- a/lib/woothee/crawler.py +++ b/lib/woothee/crawler.py @@ -76,6 +76,10 @@ def challenge_crawlers(ua, result): util.update_map(result, dataset.get('bingbot')) return True + if 'BingPreview' in ua: + util.update_map(result, dataset.get('BingPreview')) + return True + if 'Baidu' in ua: if 'compatible; Baiduspider' in ua\ or 'Baiduspider+' in ua or 'Baiduspider-image+' in ua: diff --git a/lib/woothee/dataset.py b/lib/woothee/dataset.py index 166c2ad..574997b 100644 --- a/lib/woothee/dataset.py +++ b/lib/woothee/dataset.py @@ -42,7 +42,7 @@ def _init(): - # GENERATED from dataset.yaml at Tue May 17 15:49:48 2016 by tell_k + # GENERATED from dataset.yaml at Sun Aug 14 15:48:54 2016 by taise obj = {'label': 'MSIE', 'name': 'Internet Explorer', 'type': 'browser'} # NOQA obj['vendor'] = 'Microsoft' DATASET[obj['label']] = obj @@ -295,6 +295,9 @@ def _init(): obj = {'label': 'bingbot', 'name': 'bingbot', 'type': 'full'} # NOQA obj['category'] = 'crawler' DATASET[obj['label']] = obj + obj = {'label': 'BingPreview', 'name': 'BingPreview', 'type': 'full'} # NOQA + obj['category'] = 'crawler' + DATASET[obj['label']] = obj obj = {'label': 'Yeti', 'name': 'Naver Yeti', 'type': 'full'} # NOQA obj['category'] = 'crawler' DATASET[obj['label']] = obj diff --git a/woothee b/woothee index 2acce35..26f91bc 160000 --- a/woothee +++ b/woothee @@ -1 +1 @@ -Subproject commit 2acce351b0268b54d07d31522cfbb4b21569fbbe +Subproject commit 26f91bc2159641b1c284a22a6498cdd30a19bca3