Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
     def type(self):
         return yamltool.dataMap()["flightschedule"]["flightschedule3"]["type"]

#channelkeywordall()
Ejemplo n.º 4
0
def sourcevlue():
    return yamltool.dataMap()["urlvlue"]["sourcevlue"]
Ejemplo n.º 5
0
def sourcecompile():
    return yamltool.dataMap()["urlcompile"]["sourcecompile"]
Ejemplo n.º 6
0
def urlbase():
    return yamltool.dataMap()["url"]["url"]
Ejemplo n.º 7
0
def ipvlue():
    return yamltool.dataMap()["urlvlue"]["ipvlue"]
Ejemplo n.º 8
0
 def keyword(self):
     return yamltool.dataMap()["channel"]["flighthotel"]["keyword"].split(",")
Ejemplo n.º 9
0
 def type(self):
     return yamltool.dataMap()["channel"]["channeltrain"]["type"]
Ejemplo n.º 10
0
 def keyword(self):
     return yamltool.dataMap()["channel"]["channeltrain"]["keyword"].split(",")
Ejemplo n.º 11
0
 def same(self):
     return yamltool.dataMap()["channel"]["channelplane"]["same"].split(",")
Ejemplo n.º 12
0
 def type(self):
     return yamltool.dataMap()["channel"]["feature"]["type"]
Ejemplo n.º 13
0
 def type(self):
     return yamltool.dataMap()["channel"]["channelgroup"]["type"]
Ejemplo n.º 14
0
 def type(self):
     return yamltool.dataMap()["channel"]["flighthotel"]["type"]
Ejemplo n.º 15
0
 def keyword(self):
     return yamltool.dataMap()["flightschedule"]["flightschedule1"]["keyword"].split(",")
Ejemplo n.º 16
0
def ipcompile():
    return yamltool.dataMap()["urlcompile"]["ipcompile"]
Ejemplo n.º 17
0
 def type(self):
     return yamltool.dataMap()["flightschedule"]["flightschedule1"]["type"]
Ejemplo n.º 18
0
 def keyword(self):
     return yamltool.dataMap()["channel"]["travelgroup"]["keyword"].split(",")