diff --git a/amazon_dash/execute.py b/amazon_dash/execute.py index c8369ed..ae1a4c7 100644 --- a/amazon_dash/execute.py +++ b/amazon_dash/execute.py @@ -213,6 +213,7 @@ def execute(self, root_allowed=False): if self.data.get('auth'): kwargs['auth'] = tuple(self.data['auth'].split(':', 1)) try: + kwargs['headers']['user-agent'] ='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36' resp = request(self.data.get('method', 'get').lower(), self.data['url'], verify=self.data.get('verify', True), **kwargs)