** ** 朋友需要帮忙获取资源信息,于是我利用周末时间,用python写了个工具从高德地图上抓取信息(包括位置,电话,经纬度等),得到了他想要的数据, 绝对可靠****
url = "http://restapi.amap.com/v3/place/text?&keywords=&types=" + self.cityType + "&city=" + self.cityID + "&citylimit=true&output=xml&offset=" + str(offset) + "&page="+ str(maxPage) + "&key=你的key&extensions=base"
if self.getHtml(url)==0:
print 'parsing page 1 ... ...'
#parse the xml file and get the total record number
totalRecord_str=self.parseXML