Skip to content

GooglePlusBot is not identified as a bot #125

@sangaline

Description

@sangaline

GooglePlusBot was originally used to generate link previews on Google Plus, but is now used for other use-cases like generating previews for links in SMS messages on Android (see fnando/browser#515 for additional context). The library doesn't tag this as a bot despite it being one.

Here's an example of the user agent processing:

from user_agents import parse

ua_string = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Google-PageRenderer Google (+https://developers.google.com/+/web/snippet/)'
user_agent = parse(ua_string)
print('Browser?', user_agent.get_browser())
print('Is Bot?', user_agent.is_bot)
Browser? GooglePlusBot
Is Bot? False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions