Open luoyechao opened 5 years ago
In the packet,I get the HTTPResponse.When I use the res['HTTPRespons'].User-Agent to access the user-agent, '-' in python can't be use.How should I resolve the problem?
You can use
getattr(res['HTTPResponse'], 'User-Agent')
In the packet,I get the HTTPResponse.When I use the res['HTTPRespons'].User-Agent to access the user-agent, '-' in python can't be use.How should I resolve the problem?