我对这个模块和Python完全陌生,但我想在业余时间开始一些有趣的项目。 我有一个关于Python的GooglePlaces模块的具体问题——如何通过只知道位置ID来检索一个地方的评论
到目前为止我已经做了。。。在
from googleplaces import GooglePlaces, types, lang
google_places = GooglePlaces('API KEY')
query_result = google_places.get_place(place_id="ChIJB8wSOI11nkcRI3C2IODoBU0")
print(query_result) #<Place name="Starbucks", lat=48.14308250000001, lng=11.5782337>
print(query_result.get_details()) # Prints None
print(query_result.rating) # Prints the rating of 4.3
我在这里完全迷路了,因为我无法获取对象的详细信息。也许我遗漏了一些东西,但我会非常感谢通过我的问题的任何指导。在
如果你完全迷路了,请阅读文档:)
来自https://github.com/slimkrazy/python-google-places的示例:
现在看到代码的问题了吗?在
^{pr2}$应该是
关于结果,Google Docs声明:
相关问题 更多 >
编程相关推荐