Fenlei=[a00:1450:8006 ""," how A02 ", "A03", "A04", "A05," "A06", "A07", "A08"]
For n in fenlei:
Data={
https://bbs.csdn.net/topics/'query' : '{" bool ": {" must" : [{" exists ": {" field" : "tag. C_content"}}, {" exists ": {" field" : "tag. The labels"}}, {" match ": {" tag. IsValid" : "1"}}, {" match ": {" tag. Raw" : "a00:1450:8006"}}, {" match ": {" tag. The process" : {" query ":" D01 D02 D03 D04 D05 ", "operator" : "or"}}}], "must_not" : [{" match ": {" tag. If_to_PKSSE" : "no"}}]}}'
}
Now need to replace the tag with n cycle. The raw value of circulation, modify the code error:
Fenlei=[a00:1450:8006 ""," how A02 ", "A03", "A04", "A05," "A06", "A07", "A08"]
For n in fenlei:
Data={
https://bbs.csdn.net/topics/'query' : '{" bool ": {" must" : [{" exists ": {" field" : "tag. C_content"}}, {" exists ": {" field" : "tag. The labels"}}, {" match ": {" tag. IsValid" : "1"}}, {" match ": {" tag. Raw" : {}}, {" match ": {" tag. The process" : {" query ":" D01 D02 D03 D04 D05 ", "operator" : "or"}}}], "must_not" : [{" match ": {" tag. If_to_PKSSE" : "no"}}]}}' format (n)
}
Display keyerror: bool, don't know how change is good