Open SeanWhipple opened 4 years ago
It is not python-user-agents that parses the string, but uap-python. I think if you parse the string through it, you will see the difference in it for the two environments
from ua_parser import user_agent_parser
import pprint
user_agent_str = (
...
)
parsed_string = user_agent_parser.Parse(ua_string)
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(parsed_string)
I have two python virtual environments that are installed on the same Mac. And when I try to parse a user agent one virtual environment is giving a different answer than the other. While the envs are not exactly the same I'm surprised to see these outputs.
One environment gives the following (attached requirements file
r1
)The second environment gives (requirements file
r2
)The two requirements files are attached for debugging. Both python environments are running 3.7.4
requirements_files.zip