我正在尝试在网页上找到国家/城市。所以我使用了Geograpy。 但它不能正常工作。 注:给定网站包含的所有国美 网站= http://state.1keydata.com/Python Geograpy在美国找不到城市
import geograpy
url='http://state.1keydata.com/'
place=geograpy.get_place_context(url=url)
print place.countries #[]
print place.cities #[]
我已经安装了所有必需的包像georapy,NLTK(全部) 我使用的蟒蛇。
请指导如果我错了。
预先感谢您:)
'不能正常工作'是一个相对术语。如果详细阐述你面临的问题,这对你会有好处。 –
我将编辑问题 – iamchellapandi
您是否需要指向详细信息页面?页面http://state.1keydata.com/没有列出国家和citites。只是说明。所以如果不知道确切的模块,我期望得到一个空的结果。 – Flurin