Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classify Google Web Preview as a Spider #234

Merged
merged 2 commits into from
May 22, 2017
Merged

Classify Google Web Preview as a Spider #234

merged 2 commits into from
May 22, 2017

Conversation

robcowie
Copy link
Contributor

@robcowie robcowie commented Apr 1, 2017

Classify Google Web Preview as a Spider.

We regularly see web preview user agent strings of the form Mozilla/5.0 (en-us) AppleWebKit/525.13 (KHTML, like Gecko; Google Web Preview) Version/3.1 Safari/525.13. The os and browser vary but Google Web Preview is always present.

This change classifies them as a Spider but still populates the OS and browser attributes if possible.

regexes.yaml Outdated
@@ -4864,6 +4864,15 @@ device_parsers:
model_replacement: 'Desktop'

##########
# Google Web Preview Spider
##########
- regex: 'Google Web Preview'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add this rule to the "Spider regex" in line 4860? This should still be a faster processing than adding a new rule. E.g. WhatsApp|masscan|Google Web Preview)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done @commenthol.

robcowie added 2 commits May 2, 2017 18:02

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@commenthol commenthol merged commit cbd8c65 into ua-parser:master May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants