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

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