Beispiel #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()
Beispiel #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
Beispiel #3
0
     def type(self):
         return yamltool.dataMap()["flightschedule"]["flightschedule3"]["type"]

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