def get_store(self,):
try:
resp=session.get(url=self.base_url,headers=self.headers,verify=False).content.decode()
result = etree.XML(resp)
self.data_list=result.xpath('//shop/@v')
logging.info(self.data_list)
except Exception:
traceback.print_exc()
Python获取xml数据
猜你喜欢
转载自www.cnblogs.com/hankleo/p/12973099.html
今日推荐
周排行