Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/woothee/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion lib/woothee/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion woothee