aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.py b/api.py
index 5d11e4f..e7fbb81 100644
--- a/api.py
+++ b/api.py
@@ -6,7 +6,7 @@ import json, sys, urllib.request
def call_method(method_name, **kwargs):
get_args = '&'.join(map(lambda k: '{}={}'.format(k, kwargs[k]), kwargs))
- url = 'https://api.vk.com/method/{}?{}'.format(method_name, get_args)
+ url = 'https://api.vk.com/method/{}?lang=en&{}'.format(method_name, get_args)
response = json.loads(urllib.request.urlopen(url).read().decode())
if 'response' not in response:
print(response, file=sys.stderr)