【发布时间】:2018-05-23 15:07:05
【问题描述】:
你好,
我使用来自outlook.csv 导出的数据查询google places api。
例如:Fronäckerstr. 24","Sindelfingen","71063","Deutschland
我用 pandas 读取数据。
pd.read_csv('/contacts.CSV')...
place = urllib2.quote(street + '+' + city + '+' + postcode + '+' + country)
url = 'https://maps.googleapis.com/maps/api/geocode/json?address=' \
+ place \
+ google_key
data = json.loads(urllib2.urlopen(url).read())
网址:https://maps.googleapis.com/maps/api/geocode/json?address=Fron%E4ckerstr.%2024%2BSindelfingen%2B71063%2BDeutschland&key=ABCD
我总是得到:HTTPError: HTTP Error 400: Bad Request
我不知道为什么
【问题讨论】:
标签: python-2.7 pandas csv google-maps-api-3