# -*- coding:UTF-8 -*-
# @Time  : 2020/12/4 13:24
# @File  : temp_doris_to_redis.py
# @email : litao@igengmei.com
# @author : litao
import time

city_list = {
"sichuan":298,
"xinjiang":299,
"neimenggu":300,
"xinjiang":301,
"xizang":302,
"hainan":303,
"shanxi":304,
"yunnan":305,
"anhui":306,
"liaoning":307,
"guizhou":308,
"henan":309,
"aomen":310,
"jilin":311,
"guangxi":312,
"hainan":313,
"jilin":314,
"gansu":315,
"tianjin":316,
"hebei":317,
"shanxi":318,
"yunnan":319,
"hainan":320,
"neimenggu":321,
"neimenggu":322,
"xinjiang":323,
"sichuan":324,
"chongqing":325,
"tianjin":326,
"guangxi":327,
"beijing":328,
"anhui":329,
"liaoning":330,
"guizhou":331,
"shandong":332,
"chongqing":333,
"xinjiang":334,
"anhui":335,
"hebei":336,
"jilin":337,
"hunan":338,
"xizang":339,
"xinjiang":340,
"hainan":341,
"beijing":342,
"hunan":343,
"chongqing":344,
"jiangsu":345,
"shannxi":346,
"jiangsu":347,
"anhui":348,
"beijing":349,
"guangdong":350,
"hebei":351,
"sichuan":352,
"chongqing":353,
"hainan":354,
"hunan":355,
"neimenggu":356,
"anhui":357,
"shanghai":358,
"chongqing":359,
"guangxi":360,
"yunnan":361,
"anhui":362,
"tianjin":363,
"yunnan":364,
"liaoning":365,
"liaoning":366,
"aomen":367,
"hainan":368,
"heilongjiang":369,
"shannxi":370,
"beijing":371,
"heilongjiang":372,
"sichuan":373,
"chongqing":374,
"yunnan":375,
"sichuan":376,
"shandong":377,
"chongqing":378,
"gansu":379,
"yunnan":380,
"hainan":381,
"guangdong":382,
"dongjingdu":2669,
"tianjin":383,
"zhejiang":384,
"shandong":385,
"neimenggu":386,
"hubei":387,
"hubei":388,
"guangxi":389,
"beijing":390,
"chongqing":391,
"chongqing":392,
"beijing":393,
"shanghai":394,
"guangdong":395,
"chongqing":396,
"liaoning":397,
"liaoning":398,
"anhui":399,
"fujian":400,
"jiangxi":401,
"gansu":402,
"jiangxi":403,
"sichuan":404,
"taiwan":405,
"qinghai":406,
"sichuan":407,
"sichuan":408,
"guangdong":409,
"guangxi":410,
"guangxi":411,
"guizhou":412,
"qinghai":413,
"ningxia":414,
"heilongjiang":415,
"qinghai":416,
"beijing":417,
"qinghai":418,
"hainan":419,
"qinghai":420,
"qinghai":421,
"xinjiang":422,
"hebei":423,
"tianjin":424,
"zhejiang":425,
"shanxi":426,
"anhui":430,
"henan":427,
"guangxi":428,
"chongqing":429,
"anhui":430,
"heilongjiang":431,
"heilongjiang":432,
"shannxi":433,
"hebei":434,
"hunan":435,
"xinjiang":436,
"guangdong":437,
"shandong":438,
"guangxi":439,
"yunnan":440,
"jiangsu":441,
"anhui":442,
"hunan":443,
"anhui":444,
"beijing":445,
"taiwan":446,
"hubei":447,
"qinghai":448,
"anhui":449,
"hubei":450,
"neimenggu":451,
"guangdong":452,
"liaoning":453,
"neimenggu":454,
"zhejiang":455,
"shanghai":456,
"heilongjiang":457,
"jiangxi":458,
"chongqing":459,
"guangdong":460,
"sichuan":461,
"henan":462,
"zhejiang":463,
"taiwan":464,
"gansu":465,
"guangdong":466,
"jilin":467,
"shandong":468,
"gansu":469,
"shannxi":470,
"jiangxi":471,
"tianjin":472,
"jiangsu":1681,
"hubei":473,
"hubei":474,
"zhejiang":475,
"shandong":476,
"tianjin":477,
"shanghai":478,
"shannxi":479,
"liaoning":480,
"jiangxi":481,
"xianggang":482,
"gansu":483,
"heilongjiang":484,
"tianjin":485,
"henan":486,
"jizhoutebiezizhidao":2536,
"henan":487,
"chongqing":488,
"xinjiang":489,
"xinjiang":490,
"xinjiang":491,
"xinjiang":492,
"yunnan":493,
"jiangsu":494,
"guangxi":495,
"shandong":496,
"hebei":497,
"gansu":498,
"xizang":499,
"hainan":500,
"sichuan":501,
"chongqing":502,
"sichuan":503,
"jiangsu":504,
"shandong":505,
"liaoning":506,
"jilin":507,
"yunnan":508,
"yunnan":509,
"shannxi":510,
"hainan":511,
"hainan":512,
"gansu":513,
"shandong":514,
"xizang":515,
"zhejiang":516,
"anhui":517,
"guizhou":518,
"guangxi":519,
"gansu":520,
"fujian":521,
"hunan":522,
"aomen":523,
"henan":524,
"henan":525,
"sichuan":526,
"shannxi":527,
"anhui":528,
"mangu":3936,
"guangdong":529,
"sichuan":530,
"guangdong":531,
"beijing":532,
"sichuan":533,
"taiwan":534,
"shanghai":535,
"beijing":536,
"shandong":284,
"heilongjiang":537,
"jiangxi":538,
"sichuan":539,
"chongqing":540,
"shanghai":541,
"jiangsu":542,
"guangxi":543,
"fujian":544,
"jiangsu":545,
"taiwan":546,
"henan":547,
"xizang":548,
"sichuan":549,
"zhejiang":550,
"fujian":551,
"tianjin":552,
"yunnan":553,
"liaoning":554,
"sichuan":555,
"chongqing":556,
"henan":557,
"taiwan":558,
"beijing":559,
"gansu":560,
"jiangxi":561,
"shanghai":562,
"yunnan":563,
"fujian":564,
"henan":565,
"guizhou":566,
"hubei":567,
"chongqing":568,
"guizhou":569,
"guizhou":570,
"chongqing":571,
"shandong":572,
"shanghai":573,
"gansu":574,
"guangdong":575,
"hebei":576,
"guangxi":577,
"hainan":578,
"hainan":579,
"heilongjiang":580,
"heilongjiang":581,
"fujian":582,
"yunnan":583,
"zhejiang":584,
"xizang":585,
"shandong":586,
"chongqing":587,
"shandong":588,
"henan":589,
"fujian":590,
"hainan":591,
"shanghai":592,
"shanxi":593,
"henan":594,
"jiangxi":595,
"xizang":596,
"guangdong":597,
"guangdong":598,
"guangdong":599,
"zhejiang":600,
"hunan":601,
"zhejiang":7401,
"hubei":602,
"liaoning":603,
"guangdong":604,
"xinjiang":605,
"hebei":606,
"beijing":607,
"hubei":608,
"shanghai":609,
"chongqing":610,
"ningxia":611,
"shouer":612,
"heilongjiang":613,
"guangdong":1033,
"beijing":614,
"shannxi":615,
"jilin":616,
"shanghai":617,
"jilin":618,
"heilongjiang":619,
"sichuan":620,
"hubei":621,
"jiangsu":622,
"jiangsu":623,
"anhui":624,
"xinjiang":625,
"shandong":626,
"taiwan":627,
"jiangsu":628,
"taiwan":629,
"taiwan":630,
"shannxi":631,
"taiwan":632,
"jiangsu":633,
"zhejiang":634,
"tianjin":635,
"hebei":636,
"taiwan":637,
"tianjin":638,
"hubei":639,
"gansu":640,
"liaoning":641,
"shanxi":642,
"jilin":643,
"chongqing":644,
"neimenggu":645,
"anhui":646,
"chongqing":647,
"guizhou":648,
"beijing":649,
"xinjiang":650,
"hainan":651,
"hainan":652,
"chongqing":653,
"chongqing":654,
"shandong":655,
"shandong":656,
"shanxi":657,
"hainan":658,
"yunnan":659,
"zhejiang":660,
"neimenggu":661,
"hubei":662,
"anhui":663,
"neimenggu":664,
"chongqing":665,
"xinjiang":666,
"tianjin":667,
"chongqing":668,
"gansu":669,
"jiangsu":670,
"hainan":671,
"ningxia":672,
"guangxi":673,
"fujian":674,
"shanxi":675,
"xianggang":677,
"hunan":678,
"hunan":679,
"hubei":676,
"hubei":680,
"hubei":681,
"shanxi":682,
"hubei":683,
"neimenggu":684,
"neimenggu":685,
"hebei":686,
"xinnanweiershizhou":7382,
"qinghai":687,
"xinjiapo":5188,
"xianggang":688,
"henan":689,
"henan":690,
"jiangxi":691,
"shannxi":692,
"taiwan":693,
"tianjin":694,
"yunnan":695,
"chongqing":696,
"anhui":697,
"henan":698,
"jiangsu":699,
"sichuan":700,
"shanxi":701,
"jilin":702,
"jiangsu":703,
"guangdong":704,
"shannxi":705,
"jiangsu":706,
"jilin":707,
"beijing":708,
"shandong":709,
"sichuan":710,
"hubei":711,
"heilongjiang":712,
"jiangxi":713,
"taiwan":714,
"xinjiang":715,
"ningxia":716,
"liaoning":717,
"jiangxi":718,
"zhejiang":297,
"hunan":719,
"chongqing":720,
"hunan":721,
"chongqing":722,
"chongqing":723,
"hunan":724,
"guangxi":725,
"shanxi":726,
"shannxi":727,
"guangdong":728,
"taiwan":729,
"chongqing":730,
"qinghai":731,
"yunnan":732,
"shandong":733,
"taiwan":734,
"jiangsu":735,
"hunan":736,
"hebei":737,
"jiangxi":738,
"gansu":739,
"fujian":740,
"guangdong":741,
"guangdong":742,
"yunnan":743,
"henan":744,
"jiangsu":745,
"guangdong":746,
"ningxia":747,
"chongqing":748,
"henan":749,
"zhejiang":750,
"guangdong":751,
"henan":752,
"hunan":753,
"shandong":754,
"sichuan":755,
"sichuan":756,
"guizhou":757,
}

query_list = [
"鼻综合",
"激光脱面部其他毛发",
"切开双眼皮",
"埋线双眼皮",
"定点双眼皮",
"开内眼角",
"开外眼角",
"内切祛眼袋",
"外切祛眼袋",
"激光祛眼袋",
"吸脂祛眼袋",
"上眼睑下垂矫正",
"玻尿酸填充卧蚕",
"自体脂肪填充泪沟",
"玻尿酸填充泪沟",
"切眉",
"激光祛黑眼圈",
"自体脂肪填充黑眼圈",
"鼻部膨体假体取出",
"驼峰鼻矫正",
"鹰钩鼻矫正",
"歪鼻矫正",
"朝天鼻矫正",
"缩鼻背",
"手术缩鼻头",
"自体脂肪隆鼻",
"玻尿酸隆鼻",
"自体软骨垫鼻尖",
"注射瘦脸",
"吸脂瘦脸",
"自体脂肪丰苹果肌",
"玻尿酸填充丰苹果肌",
"颧骨内推",
"玻尿酸丰下巴",
"下巴前推",
"自体脂肪丰下巴",
"硅胶垫下巴",
"膨体垫下巴",
"缩下巴",
"宽下巴矫正",
"激光溶脂祛双下巴",
"酒窝成形术",
"自体脂肪丰面颊",
"自体脂肪丰太阳穴",
"玻尿酸丰太阳穴",
"硅胶丰太阳穴",
"膨体丰太阳穴",
"自体脂肪丰额头",
"玻尿酸丰额头",
"硅胶丰额头",
"膨体丰额头",
"招风耳矫正",
"大耳缩小术",
"杯状耳矫正",
"唇腭裂修复",
"厚唇改薄术",
"玻尿酸丰唇",
"自体脂肪丰唇",
"处女膜修复",
"包皮手术",
"填充阴唇",
"阴唇整形",
"注射祛腋臭",
"激光祛腋臭",
"激光脱发际线",
"植眉",
"种鬓角",
"植睫毛",
"黑脸娃娃",
"激光脱唇毛",
"激光祛红血丝",
"光子嫩肤",
"激光祛纹身",
"玻尿酸除颈纹",
"自体脂肪除颈纹",
"玻尿酸除法令纹",
"自体脂肪除法令纹",
"玻尿酸除眉间纹",
"胸部失败修复",
"乳房再造",
"假体隆胸",
"吸脂祛副乳",
"手术祛副乳",
"乳头内陷矫正",
"乳头缩小",
"乳晕缩小",
"乳晕漂染",
"乳房缩小",
"胸部下垂矫正",
"中医减肥其他项目",
"吸脂瘦背部",
"自体脂肪丰臀",
"产后塑形",
"腹壁成形术",
"膨体隆鼻",
"硅胶隆鼻",
"自体肋软骨隆鼻",
"激光溶脂瘦脸",
"注射瘦腿",
"吸脂瘦大腿",
"吸脂瘦小腿",
"吸脂瘦手臂",
"自体脂肪隆胸",
"玻尿酸除面部细纹",
"自体脂肪除面部细纹",
"植发际线",
"吸脂祛双下巴",
"鼻翼缩小",
"全瓷牙",
"手术祛腋臭",
"像素激光",
"植胡须",
"吸脂塑臀",
"点阵激光",
"玻尿酸丰面颊",
"玻尿酸祛黑眼圈",
"胶原蛋白填充丰唇",
"胶原蛋白填充祛黑眼圈",
"胶原蛋白注射隆鼻",
"胶原蛋白丰太阳穴",
"胶原蛋白填充丰下巴",
"胶原蛋白填充隆胸",
"胶原蛋白填充丰臀",
"胶原蛋白填充除法令纹",
"胶原蛋白填充丰面颊",
"胶原蛋白填充泪沟",
"下眼睑下至",
"泪腺脱垂整形",
"自体脂肪填充卧蚕",
"真皮填充卧蚕",
"埋线隆鼻",
"鼻中隔软骨垫鼻头",
"注射缩鼻头",
"假体垫鼻基底",
"玻尿酸垫鼻基底",
"自体脂肪垫鼻基底",
"鼻中隔软骨隆鼻",
"鼻孔矫正",
"溶脂针瘦脸",
"颧骨提高",
"凸嘴矫正",
"面部不对称改善",
"人工骨垫下巴",
"胶原蛋白填充苹果肌",
"白瓷娃娃",
"热玛吉",
"PRP自体血清美肤",
"美白针",
"手术祛疤",
"综合祛疤",
"注射祛疤",
"激光点痣",
"射频溶脂瘦手臂",
"小腿神经阻断术",
"假体丰臀",
"吸脂瘦肩",
"注射瘦肩",
"点穴减肥",
"针灸减肥",
"埋线减肥",
"错颌锁颌",
"隐形矫正",
"根管治疗",
"M唇成形术",
"阴茎延长",
"阴茎增粗",
"玻尿酸丰耳垂",
"轮廓修复术",
"胸部假体取出",
"超声提升",
"线雕",
"双眼皮修复",
"眶隔脂肪释放",
"玻尿酸垫眉弓",
"自体脂肪垫眉弓",
"硅胶垫眉弓",
"膨体垫眉弓",
"上眼睑祛脂",
"鼻小柱延长",
"额头缩小",
"人中缩短",
"射频溶脂塑臀",
"漂唇",
"红蓝光祛痘",
"化学剥脱祛斑",
"冷光美白",
"激光祛疤",
"拉皮",
"黄金微针",
"激光除皱",
"埋线除皱",
"放射状角膜切开术",
"准分子激光切削术",
"准分子激光原位角膜磨镶术",
"透明晶体摘除术",
"远视镜片矫正",
"激光屈光性角膜切削术",
"圆柱镜矫正",
"角膜接触镜矫正",
"角膜屈光手术",
"斜视镜片矫正",
"斜视矫正手术",
"眼科检查",
"玻尿酸填充隆胸",
"激光紧缩阴道",
"眼袋修复",
"鼻形态修复",
"鼻部硅胶假体取出",
"激光除妊娠纹",
"黄金微针除妊娠纹",
"冷冻祛腋臭",
"半永久纹眉",
"水氧活肤",
"自体脂肪全面部填充",
"镭射净肤",
"半永久纹眼线",
"水光针",
"无针水光",
"射频提升",
"激光脱腋毛",
"激光脱比基尼部位",
"激光脱臂毛",
"激光脱大腿/小腿毛",
"彩光嫩肤",
"耳软骨隆鼻",
"果酸焕肤",
"身体检查",
"玻尿酸溶解酶",
"眼综合",
"开眼角修复",
"合金烤瓷牙",
"二氧化锆烤瓷牙",
"超声波洗牙",
"树脂补牙",
"拔龋齿",
"拔智齿",
"嘴角上扬术",
"口腔检查",
"孕睫术",
"玻尿酸精华导入",
"双颚手术",
"热拉提",
"人工骨隆鼻",
"自体真皮隆鼻",
"鼻小柱缩短",
"长鼻矫正",
"颧弓降低",
"微针祛痘坑",
"激光祛斑",
"皮秒激光",
"小气泡美肤",
"微针水光",
"玻尿酸丰乳头",
"乳头再造",
"胶原蛋白注射丰乳晕",
"提眉修复",
"卧蚕手术修复",
"半永久纹发际线",
"颧骨填充术",
"微晶瓷隆鼻",
"激光祛脂肪粒",
"少女针注射",
"童颜针注射",
"假体填充苹果肌",
"抗敏修复",
"洗眼线",
"肤质检测",
"阴蒂整形",
"菲洛嘉",
"HPV检查",
"全脸整形套餐",
"V脸套餐",
"祛斑套餐",
"美白套餐",
"补水套餐",
"皮肤综合管理套餐",
"洗牙套餐",
"唇部综合",
"除皱套餐",
"玻尿酸注射套餐",
"乳腺检查",
"全飞秒",
"半飞秒",
"ICL晶体植入",
"异物取出",
"美胸套餐",
"激光脱全身毛发",
"射频祛眼袋",
"O型腿矫正",
"X型腿矫正",
"G点注射",
"牙齿瓷贴面",
"自体软骨垫鼻基底",
"女性私密检查",
"阴唇漂红",
"手术紧缩阴道",
"性腺激活",
"种植牙齿",
"下颌角切除术",
"玻尿酸丰眼窝",
"注射去鼻背纹",
"注射去口周纹",
"注射去动态纹",
"注射治疗多汗",
"注射颏肌放松",
"美白导入",
"埋线祛眼袋",
"光纤溶脂祛眼袋",
"微针祛黑眼圈",
"射频祛黑眼圈",
"眼综合修复",
"宽鼻矫正",
"颧骨颧弓整形术",
"下巴截骨",
"下巴硅胶假体取出",
"下巴膨体假体取出",
"下颚前突/地包天",
"上颚前突/天包地",
"下颌角整形",
"取颊脂垫瘦脸",
"射频溶脂瘦脸",
"光纤溶脂瘦脸",
"冷冻溶脂瘦腹部",
"冷冻溶脂瘦腰部",
"冷冻溶脂瘦手臂",
"冷冻溶脂瘦大腿",
"冷冻溶脂瘦小腿",
"冷冻溶脂瘦肩膀",
"冷冻溶脂瘦背部",
"冷冻溶脂瘦臀部",
"射频溶脂瘦大腿",
"射频溶脂瘦小腿",
"射频溶脂瘦肩膀",
"射频溶脂瘦背部",
"射频溶脂瘦腰部",
"射频溶脂瘦腹部",
"超声溶脂瘦手臂",
"超声溶脂瘦腰部",
"超声溶脂瘦腹部",
"超声溶脂瘦大腿",
"超声溶脂瘦小腿",
"超声溶脂瘦臀部",
"超声溶脂瘦背部",
"超声溶脂瘦肩部",
"光纤溶脂瘦手臂",
"光纤溶脂瘦腰部",
"光纤溶脂瘦腹部",
"光纤溶脂瘦大腿",
"光纤溶脂瘦小腿",
"光纤溶脂瘦背部",
"光纤溶脂瘦臀部",
"光纤溶脂瘦肩部",
"吸脂瘦腰部",
"吸脂瘦腹部",
"吸脂瘦全身",
"吸脂失败修复术",
"杏仁酸焕肤",
"水杨酸焕肤",
"清痘针",
"冷冻祛痣",
"手术祛胎记",
"激光祛胎记",
"洗眉",
"小棕瓶美白",
"水光娃娃",
"种植面膜",
"SMAS除皱手术",
"内窥镜手术提升",
"小切口手术提升",
"干细胞疗法",
"复合隆胸",
"男性乳房肥大矫正",
"头顶加密种植",
"美人尖种植",
"种植胸毛",
"种植私密毛发",
"疤痕种植毛发",
"防脱理疗",
"乌发理疗",
"深层清洁",
"养发护理",
"头部 SPA",
"头皮护理",
"头皮控油",
"毛囊检测",
"私密超声提升",
"私密综合项目男",
"私密综合项目女",
"私密清洁",
"私密护理",
"牙齿综合",
"颌面正畸",
"金属托槽矫正",
"自锁托槽矫正",
"激光牙龈去色素",
"皓齿美白",
"激光美白牙",
"贵金属烤瓷牙",
"牙齿抛光",
"喷砂洗牙",
"其他材料补牙",
"树脂贴面",
"儿童口腔预防窝沟封闭",
"mrc肌功能矫治",
"口腔溃疡",
"牙髓炎",
"牙龈炎",
"显微镜根管治疗",
"牙周护理",
"玻尿酸全脸填充",
"嗨体祛颈纹",
"注射祛法令纹",
"注射祛鱼尾纹",
"注射祛抬头纹",
"注射祛川字纹",
"注射祛木偶纹",
"注射祛露龈笑",
"注射祛面部细纹",
"胶原蛋白填充额头",
"胶原蛋白填充面部细纹",
"副耳祛除术",
"OK 镜近视矫正",
"绿飞秒",
"后巩膜加固术",
"视网膜脱落",
"角膜炎",
"沙眼",
"散光",
"结膜炎",
"青光眼",
"干眼护理",
"眼部清洗",
"眼镜试戴",
"眼部穴位按摩",
"宫颈癌疫苗",
"基因检测",
"中老年体检",
"女性体检",
"产后乳房护理",
"阴道修复",
"乳腺疏通",
"盆底肌修复",
"产后熏蒸",
"盆腔炎",
"宫颈炎",
"卵巢囊肿",
"子宫肌瘤",
"月经不调",
"阴道炎检查",
"痛经检查",
"备孕检查",
"剖腹产手术",
"四维彩超",
"产检",
"分娩",
"坐月子",
"肘内翻矫正",
"肘外翻矫正",
"手指巨指矫正",
"多指矫正",
"手指断指再造",
"足内翻矫正",
"马蹄足矫正",
"长短腿矫正",
"膝外翻矫正",
"膝内翻矫正",
"经络疏通",
"艾灸理疗",
"刮痧拔罐",
"中医药浴",
"中医按摩",
"全身 SPA",
"背部护理",
"美胸护理",
"肩颈护理",
"腿部护理",
"臀部护理",
"手部护理",
"足疗",
"眼部保养",
"半永久睫毛线",
"半永久纹唇",
"接睫毛",
"半永久美瞳线",
"拔罐减肥",
"内眦赘皮矫正",
"大脚骨整形",
"综合祛眼袋",
"自体脂肪私密紧致",
"私密脱毛",
"脱脚毛",
"脱背部",
"脱络腮胡",
"拔乳牙",

]
import requests
import redis
import json
headers = {'X-GAIA-HELIOS-VERSION': '0.7.4','X-GM-Request-Id': '123','x-gm-path': '/6261582/','X-GM-Rpc-Method': 'doris/search/query_sku',}


rds = redis.StrictRedis.from_url("redis://:XfkMCCdWDIU%ls$h3@172.16.50.159:6379", decode_responses=True)
for city in city_list:
    redis_key = "service_icon_{}".format(city)
    for query in query_list:
        try:
            # if rds.exists(key):
            #     continue
            data = {
                'requests': '[{\"request_id\": null, \"method\": \"doris/search/query_sku\", \"params\": {\"sort_with_submission\": true, \"or_filters\": [], \"sort_params\": { \"in_whitelist\": 1, \"user_city_tag_id\": %s, \"device_id\": \"androidid_ba0799595f555c98\"}, \"sort_type\": 0, \"use_tagv3\": false, \"filters\": {\"tag_ids\": [%s]}, \"offset\": 0, \"query\": \"\", \"is_sort_with_icon\": true, \"user_city_tag_id\": %s, \"size\": 100}, \"environment\": {\"trace_context\": {\"debug\": false, \"sampled\": false, \"trace_id\": \"1abd5ea122024a32827e0a0dd8ad45eb\", \"span_id\": \"0.2\"}, \"l5d_path\": \"/prod/gaia\", \"passport\": null, \"client_info\": {\"log_id\": \"gaia.z1l7e4odb43efc0179047f890fc023ba\", \"span_id\": \"z1l7e4o0ffec82d12944357b60360e80\"}, \"session_id\": \"ifop8w1o4spoe969kxd6yh77wzgtsz3c\"}}]' % (
                    city_list[city],str(query),city_list[city])}

            # print(data)
            response = requests.post('http://172.16.50.10:8050/v1/batch', headers=headers, data=data)
            data = json.dumps(response.json())
            print(data)
            time.sleep(0.2)

            # dict[query] = data
            rds.hset(redis_key,query, data)
        except Exception as e:
            print(e)
            continue
        # break