diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-06-27 10:42:09 +0300 |
---|---|---|
committer | Ilya Zverev <ilya@zverev.info> | 2017-06-28 19:41:05 +0300 |
commit | c878b6a37dd87f57c9db8754a9e30e2ea713220c (patch) | |
tree | 4e71afec05aea4e299a59168e4761d6133d9e6a1 /tools/python | |
parent | 5ec098db10080525bc57f304e2ca9f5aed3dcb63 (diff) |
review fixes
Diffstat (limited to 'tools/python')
-rw-r--r-- | tools/python/viator_cities.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/python/viator_cities.py b/tools/python/viator_cities.py index c6818f1cef..10dc489420 100644 --- a/tools/python/viator_cities.py +++ b/tools/python/viator_cities.py @@ -14,11 +14,9 @@ class ViatorApi(object): self.apikey = apikey def get_locations(self): - url = 'http://viatorapi.viator.com/service/taxonomy/locations?apiKey=' + self.apikey + url = 'https://viatorapi.viator.com/service/taxonomy/locations?apiKey=' + self.apikey stream = urllib2.urlopen(url) - payload = stream.read() - locations = json.loads(payload) - return locations + return json.load(stream) def check_errors(locations): |