def channelkeywordall(): list = [] for n in range(len(yamltool.dataMap()["channel"])): for m in range(len(yamltool.dataMap()["channel"].items()[n][1]["keyword"].split(","))): list.append(yamltool.dataMap()["channel"].items()[n][1]["keyword"].split(",")[m]) return list #channelkeywordall()
def url_keyword(keyword): url = urlbase() url = url.replace("ipvlue",str(yamltool.dataMap()['urlvlue']['ipvlue'])) url = url.replace("bodyvlue",str(yamltool.dataMap()['urlvlue']['bodyvlue'])) url = url.replace("actionvlue",str(yamltool.dataMap()['urlvlue']['actionvlue'])) url = url.replace("lonvlue",str(yamltool.dataMap()['urlvlue']['lonvlue'])) url = url.replace("latvlue",str(yamltool.dataMap()['urlvlue']['latvlue'])) url = url.replace("districtidvlue",str(yamltool.dataMap()['urlvlue']['districtidvlue'])) url = url.replace("sourcevlue",str(yamltool.dataMap()['urlvlue']['sourcevlue'])) url = url.replace("keywordvlue",keyword) return url
def type(self): return yamltool.dataMap()["flightschedule"]["flightschedule3"]["type"] #channelkeywordall()
def sourcevlue(): return yamltool.dataMap()["urlvlue"]["sourcevlue"]
def sourcecompile(): return yamltool.dataMap()["urlcompile"]["sourcecompile"]
def urlbase(): return yamltool.dataMap()["url"]["url"]
def ipvlue(): return yamltool.dataMap()["urlvlue"]["ipvlue"]
def keyword(self): return yamltool.dataMap()["channel"]["flighthotel"]["keyword"].split(",")
def type(self): return yamltool.dataMap()["channel"]["channeltrain"]["type"]
def keyword(self): return yamltool.dataMap()["channel"]["channeltrain"]["keyword"].split(",")
def same(self): return yamltool.dataMap()["channel"]["channelplane"]["same"].split(",")
def type(self): return yamltool.dataMap()["channel"]["feature"]["type"]
def type(self): return yamltool.dataMap()["channel"]["channelgroup"]["type"]
def type(self): return yamltool.dataMap()["channel"]["flighthotel"]["type"]
def keyword(self): return yamltool.dataMap()["flightschedule"]["flightschedule1"]["keyword"].split(",")
def ipcompile(): return yamltool.dataMap()["urlcompile"]["ipcompile"]
def type(self): return yamltool.dataMap()["flightschedule"]["flightschedule1"]["type"]
def keyword(self): return yamltool.dataMap()["channel"]["travelgroup"]["keyword"].split(",")