We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I've noticed that the first time, is_bot() will return True, then False the next times for the same user agent.
With this simple script you will see :
from device_detector import DeviceDetector user_agent = "Mozilla/5.0 (compatible; CloudFlare-AlwaysOnline/1.0; +http://www.cloudflare.com/always-online) AppleWebKit/534.34" parsed = DeviceDetector(user_agent).parse() print(parsed.is_bot()) #True parsed = DeviceDetector(user_agent).parse() print(parsed.is_bot()) #False
A cache problem ?
Maybe it's not only is_bot() but os_name(), os_version(), etc. that returns incorrect values too.
Thanks
The text was updated successfully, but these errors were encountered:
The problematic commit is the last one : dab74c3
Sorry, something went wrong.
Any update about this ? @thinkwelltwd
b5b1c58
Thanks!
No branches or pull requests
Hello,
I've noticed that the first time, is_bot() will return True, then False the next times for the same user agent.
With this simple script you will see :
A cache problem ?
Maybe it's not only is_bot() but os_name(), os_version(), etc. that returns incorrect values too.
Thanks
The text was updated successfully, but these errors were encountered: