I\'m trying to get access to the user agent with Flask, but I either can\'t find the documentation on it, or it doesn\'t tell me.
from flask import request
request.headers.get('User-Agent')
You can also use the request.user_agent object which contains the following attributes which are created based on the useragent string:
== request.headers.get('User-Agent'))