# -*- coding:UTF-8 -*-
# @Time  : 2020/12/3 13:53
# @File  : temp_service_to_redis.py
# @email : litao@igengmei.com
# @author : litao
import json
import time
import urllib

query_list = ["双眼皮",
              "瘦脸针",
              "发型",
              "脱毛",
              "水光针",
              "热玛吉",
              "光子嫩肤",
              "吸脂",
              "测脸型",
              "玻尿酸",
              "鼻综合",
              "小气泡",
              "果酸焕肤",
              "如何根据脸型测发型",
              "线雕",
              "脸型适合什么发型",
              "测发型",
              "开内眼角",
              "美白针",
              "隆胸",
              "下颌角",
              "祛斑",
              "菲洛嘉",
              "瘦腿针",
              "隆鼻",
              "植发",
              "眼综合",
              "超声刀",
              "皮秒",
              "双眼皮2388",
              "祛痘",
              "超皮秒",
              "搜索项目、商品、医生",
              "皮秒激光",
              "补水",
              "微针",
              "除皱",
              "面部吸脂",
              "热拉提",
              "脸型",
              "点阵激光",
              "牙齿矫正",
              "面部轮廓",
              "测适合什么发型",
              "颧骨内推",
              "嗨体",
              "美白",
              "ai测颜值",
              "下巴",
              "颜值分析",
              "自体脂肪填充",
              "鼻头",
              "改善肤质",
              "丰胸（隆胸）",
              "热玛吉五代",
              "美莱",
              "玻尿酸注射",
              "黄金微针",
              "手术瘦脸",
              "脂肪填充",
              "牙齿美白",
              "鼻基底",
              "Fotona4D",
              "玻尿酸丰太阳穴",
              "厚唇改薄",
              "吸脂瘦脸",
              "深蓝射频",
              "缩毛孔",
              "自体脂肪填充面部",
              "韩式半永久妆",
              "自体脂肪隆胸",
              "韩式半永久纹眉",
              "鼻部综合",
              "鼻翼缩小",
              "软骨隆鼻",
              "瘦脸",
              "毛发移植",
              "假体隆胸",
              "瘦肩针",
              "双眼皮修复",
              "白瓷娃娃",
              "溶脂针",
              "更美小秘书",
              "切开双眼皮",
              "祛痘印",
              "拍照测发型",
              "手术缩鼻翼",
              "埋线双眼皮",
              "眼袋",
              "m22",
              "法令纹",
              "保妥适",
              "缩鼻翼",
              "玻尿酸丰唇",
              "激光脱毛",
              "洗牙",
              "欧洲之星",
              "适合的头发",
              "周文武",
              "纹眉",
              "人中缩短",
              "发型设计",
              "侧脸",
              "艾莉薇",
              "拉皮",
              "瘦脸针580",
              "黑眼圈",
              "菲洛嘉水光针",
              "开眼角",
              "热玛吉5999",
              "自体脂肪丰太阳穴",
              "瘦腿",
              "抽脂",
              "伊肤泉微针",
              "祛眼袋",
              "自体脂肪全面部填充",
              "M22",
              "溶解酶",
              "泪沟",
              "水光",
              "颧骨",
              "磨骨",
              "瘦脸针680",
              "肋骨鼻",
              "伊婉V",
              "耳软骨隆鼻",
              "光子嫩肤88",
              "面部填充",
              "伊婉C",
              "祛黑眼圈",
              "假体垫鼻基底",
              "点痣",
              "激光祛斑",
              "艺星",
              "黄金微雕",
              "刘海",
              "吸脂瘦大腿",
              "水杨酸",
              "私密",
              "上海艺星医疗美容医院",
              "丰唇",
              "ai测肤质",
              "上睑提肌术",
              "下颌缘提升",
              "除皱针",
              "鼻",
              "玻尿酸隆鼻",
              "眼睑下至",
              "北京美莱医疗美容医院",
              "华美",
              "自体脂肪",
              "祛疤",
              "测肤质",
              "鼻子",
              "果酸",
              "脸型适合什么头型",
              "北京凯润婷（原史三八）医疗美容医院",
              "看我适合什么发型",
              "瘦脸针一口价680",
              "超声提升",
              "测头发",
              "植发际线",
              "玻尿酸丰下巴",
              "半永久纹眉",
              "皮肤检测",
              "上海首尔丽格医疗美容整形医院",
              "丰胸",
              "定点双眼皮",
              "埋线",
              "溶脂",
              "祛痣",
              "光纤溶脂",
              "眼",
              "熊猫针",
              "乔雅登",
              "针清",
              "广州积美医疗美容门诊部",
              "去眼袋",
              "重庆华美整形美容医院",
              "鼻修复",
              "处女膜修复",
              "M唇成形术",
              "微笑唇",
              "玻尿酸丰鼻基底",
              "测脸",
              "测一测发型",
              "假体隆鼻",
              "看看我适合什么发型",
              "胶原蛋白",
              "射频紧肤",
              "痘坑",
              "热玛吉四代",
              "魔镜测脸",
              "埋线提升",
              "假体下巴",
              "重庆时光整形美容医院",
              "无痕植眉",
              "胶原蛋白填充泪沟",
              "点阵",
              "全身吸脂",
              "进口botox瘦脸针",
              "所长大人",
              "杭州艺星医疗美容医院",
              "红蓝光",
              "吸脂瘦全身",
              "扫一扫发型",
              "爱芙莱",
              "大腿吸脂",
              "头发",
              "紫馨医疗美容医院",
              "微针祛痘坑",
              "北京艺星医疗美容医院",
              "肋骨鼻综合",
              "肉毒素",
              "蜂巢皮秒",
              "玻尿酸垫下巴",
              "测颜值",
              "收缩毛孔",
              "提眉术",
              "发际线",
              "熊猫针祛黑眼圈",
              "广州美莱医疗美容",
              "切开双眼皮去皮去脂",
              "胸",
              "上海薇琳医疗美容医院",
              "广州曙光医学美容医院",
              "硅胶隆鼻",
              "嗨体祛颈纹",
              "私密整形",
              "嗨体泪沟",
              "北京画美医院",
              "肋软骨隆鼻",
              "酒窝",
              "刷酸",
              "腰腹吸脂",
              "深圳联合丽格医疗美容门诊部",
              "广州天姿医美",
              "太阳穴填充",
              "深圳艺星医疗美容医院",
              "抬头纹",
              "轮廓针",
              "fotona",
              "润百颜",
              "沈阳灿美医疗美容",
              "玻尿酸除法令纹",
              "双眼皮一口价2149",
              "洁面",
              "提眉",
              "上海美莱医疗美容医院",
              "西安米兰柏羽医疗美容医院（原西安美立方）",
              "英诺",
              "黑脸娃娃",
              "我是什么脸",
              "广东美恩整形美容医院",
              "乔雅登极致",
              "切眉",
              "小阴唇手术",
              "种植发际线",
              "射频",
              "溶脂针瘦脸",
              "热玛吉一口价5279",
              "卧蚕",
              "西安美莱医学美容医院",
              "补牙",
              "下眼睑下至",
              "法思丽",
              "郑州东方整形美容医院",
              "侧颜值",
              "北京凤凰妇儿医院",
              "嘟嘟唇",
              "玻尿酸填充泪沟",
              "ai测脸",
              "射频祛黑眼圈",
              "阴道紧缩",
              "酷塑",
              "硅胶垫下巴",
              "上海九院",
              "上海华美医疗美容医院",
              "丝丽动能素",
              "深圳美莱医疗美容医院",
              "手术紧缩阴道",
              "颈纹",
              "广州可玫尔医疗美容",
              "ai",
              "开外眼角",
              "童颜针",
              "膨体隆鼻",
              "小宝",
              "重庆当代整形美容医院",
              "一针降颧骨",
              "试发型",
              "北京联合丽格第一医疗美容医院",
              "洗眉",
              "成都军大整形美容医院",
              "拍照",
              "去法令纹",
              "小棕瓶",
              "填充泪沟",
              "润百颜黑金",
              "海薇",
              "面部提升",
              "眶隔脂肪释放",
              "婴儿针",
              "M唇",
              "润月雅水光针",
              "上海悦莱医疗美容门诊部有限公司",
              "颧骨降低",
              "双眼皮修复手术",
              "广东省韩妃整形医院（官方旗舰店）",
              "我想测一下我是什么脸型",
              "嗨体去颈纹",
              "去黑眼圈",
              "四川华美紫馨医学美容医院",
              "南京艺星医疗美容",
              "面吸",
              "八大处",
              "下颌角整形",
              "上海李斌",
              "私密漂红",
              "适合妆容",
              "广州华美医疗美容医院",
              "自体脂肪全脸填充",
              "拉皮手术",
              "面部分析",
              "冷光美白",
              "无针水光",
              "更美",
              "阴唇整形",
              "深圳艾妍医疗美容门诊部",
              "四川米兰柏羽医学美容医院",
              "眉毛",
              "唇综合",
              "小腿神经阻断术",
              "西安画美医疗美容医院",
              "去疤痕",
              "冷冻溶脂",
              "积美",
              "腰腹环吸",
              "舒敏之星",
              "私密脱毛",
              "美立方",
              "重庆军美医疗美容医院",
              "瑞蓝",
              "上海百达丽医疗美容门诊部",
              "重庆星宸整形美容医院",
              "妊娠纹",
              "成都市西区医院",
              "眼部热玛吉",
              "美莱瘦脸针",
              "头型",
              "红蓝光祛痘",
              "双下巴",
              "微笑唇/M唇",
              "双美",
              "婕尔",
              "肤质测试",
              "鼻基底凹陷",
              "凸嘴矫正",
              "脂肪胶",
              "嘴角上扬术",
              "玻尿酸填充面部",
              "丰臀",
              "全切双眼皮修复",
              "北京惠合嘉美医疗美容",
              "更美ai",
              "m唇",
              "水光针注射",
              "除皱针注射",
              "脸型决定发型",
              "双眼皮2149",
              "南京美贝尔医疗整形美容医院",
              "垫下巴",
              "凯润婷",
              "内切祛眼袋",
              "壹加壹",
              "北京润美玉之光医疗美容",
              "全切双眼皮",
              "文艺优雅脸适合什么头发",
              "你的大王",
              "阴唇漂红",
              "人中缩短术",
              "英诺小棕瓶",
              "衡力瘦脸针",
              "重庆玛恩医疗美容医院",
              "磨骨手术",
              "上海伯思立医疗美容门诊部",
              "私密紧致",
              "热提拉",
              "海菲秀",
              "光博士",
              "ai试发型",
              "红血丝",
              "我适合什么发型",
              "昆明梦想医疗美容医院",
              "去黑头",
              "美版超声提升",
              "润百颜水光针",
              "南宁悦星医疗美容",
              "一键侧脸",
              "嗨体熊猫针",
              "热拉提plus",
              "自体脂肪隆鼻",
              "化妆",
              "五洲",
              "下颌缘",
              "吸脂瘦手臂",
              "黑头",
              "宝尼达",
              "小拉皮",
              "牙齿隐形矫正",
              "激光祛疤",
              "颧骨颧弓",
              "厚唇改薄术",
              "重庆美莱整形美容医院",
              "适合什么样的眉毛",
              "激光点痣",
              "深圳鹏爱秀琪医疗美容医院",
              "伊婉",
              "鼻骨内推",
              "深圳阳光医院",
              "光子",
              "圆脸适合什么发型",
              "测试",
              "假体丰臀",
              "精华导入",
              "雪儿海蒂（女性私密整形专科）",
              "种植牙",
              "丝丽",
              "吸脂祛双下巴",
              "隐形矫正",
              "剪头发",
              "眼部综合",
              "玻尿酸溶解酶",
              "广州荔医整形美容",
              "北京煤医医疗美容医院（原煤炭总医院整形科）",
              "PRP自体血清美肤",
              "毛孔粗大",
              "抗衰",
              "人中",
              "双美胶原蛋白",
              "祛黑头",
              "美瞳线",
              "填充",
              "三点双眼皮",
              "重庆新铜雀台整形美容医院",
              "测试发型",
              "眉弓",
              "薇琳",
              "小阴唇整形",
              "削骨",
              "深圳富华医疗美容医院",
              "成都铜雀台医学美容医院",
              "杭州华山连天美医疗美容医院",
              "衡力",
              "眼部护理",
              "重庆沙坪坝玺悦台医疗美容门诊有限公司",
              "兔八哥",
              "北京彤美整形",
              "腰腹抽脂",
              "胸部下垂矫正",
              "ai测脸型",
              "伊肤泉",
              "缔妍",
              "小气泡美肤",
              "测一测脸型",
              "迷你小拉皮",
              "激光祛黑眼圈",
              "牙齿瓷贴面",
              "适合什么发型",
              "上海愉悦美联臣医疗美容医院有限公司",
              "乳头缩小",
              "男性私密",
              "光纤溶脂瘦脸",
              "深圳鹏程医院",
              "祛斑套餐",
              "杭州仁德妇产医院（私密整形修复中心）",
              "玻尿酸下巴",
              "射频提升",
              "射频溶脂",
              "面部线雕",
              "祛皱",
              "肉毒",
              "非剥脱点阵激光",
              "维多利亚",
              "去除脸上痘痘",
              "成都艺星医疗美容医院",
              "威塑吸脂",
              "下至",
              "明星颜值分析",
              "福州格莱美美容医院",
              "魔镜侧脸",
              "小腿吸脂",
              "重庆宝丽医疗整形",
              "苹果肌",
              "疤痕",
              "V脸套餐",
              "自体脂肪丰臀",
              "怎么测脸型",
              "方脸发型",
              "薄唇",
              "深圳福华医疗美容医院",
              "荔湾鼻综合",
              "小阴唇",
              "瑞蓝2号",
              "去痘印痘坑",
              "玻尿酸垫鼻基底",
              "三文鱼水光针",
              "自体脂肪填充泪沟",
              "荔湾丰胸",
              "缩小鼻头",
              "大分子玻尿酸",
              "八大处整形（亚运村院）",
              "菲蜜丽",
              "女性私密",
              "面部测试",
              "深圳鹏爱医疗美容医院",
              "北京亚楠容悦医疗美容诊所",
              "南京医科大学友谊整形外科医院",
              "外切祛眼袋",
              "御美妍",
              "测试脸型",
              "抽脂瘦身",
              "杭州美莱医疗美容医院",
              "太阳穴",
              "重庆艺星医疗美容医院",
              "北京华悦府医疗美容",
              "激光紧缩阴道",
              "垫眉弓",
              "广大整形美容医院",
              "吸脂瘦小腿",
              "怎样去黑头",
              "拉皮手术提升",
              "南京华美整形医院",
              "伊美尔",
              "搜索项目、美购、医生",
              "广州医选医疗美容",
              "西安华旗唯美医疗美容门诊部",
              "哈尔滨斯美诺医疗美容门诊",
              "全身脱毛",
              "ai测发型",
              "上海玫瑰医疗美容医院",
              "脸型适合的发型",
              "海薇伊婉",
              "玻尿酸导入",
              "超体隆鼻",
              "吸脂瘦下颌缘",
              "正颌手术",
              "瘦肩",
              "鼻头缩小",
              "超光子",
              "牙贴面",
              "铜雀台",
              "减肥",
              "冰点脱毛",
              "埋线减肥",
              "嘴唇",
              "测眼睛",
              "成都美绽美整形美容医院",
              "面膜",
              "美修斯",
              "刘晓伟",
              "上海光博士医疗美容门诊部",
              "成都中医大银海医美",
              "更换发型",
              "轮廓",
              "手术缩鼻头",
              "垫鼻基底",
              "祛颊脂垫",
              "自体脂肪丰胸",
              "痘印",
              "五洲水光",
              "适合发型",
              "拍照侧脸",
              "画美",
              "瘦身",
              "中家医家庭医生整形美容医院",
              "去痣",
              "美白嫩肤",
              "漂红",
              "眼睛",
              "河南缔莱美整形美容医院",
              "悦升线",
              "四川美莱医学美容医院",
              "眼修复",
              "牙套",
              "膨体垫下巴",
              "壹加壹整形美容医院（华南旗舰院）",
              "牙齿",
              "唇",
              "长沙艺星医学美容医院",
              "乳晕漂红",
              "王者之冠",
              "返现小助手",
              "五洲瘦脸",
              "美颜相机",
              "AI",
              "祛痘生活美容",
              "手臂吸脂",
              "北京薇琳医疗美容医院",
              "脂肪填充修复",
              "下颌角切除术",
              "漂唇",
              "小切口手术提升",
              "小切口拉皮",
              "西安艺星医疗美容医院",
              "超生刀",
              "脂肪填充面部年轻化",
              "拔牙",
              "怎么去痘痘",
              "蛋白",
              "痘痘",
              "深圳悦她医疗美容",
              "种植睫毛",
              "九院",
              "大腿环吸",
              "线雕隆鼻",
              "杭州薇琳医疗美容医院",
              "爱贝芙",
              "深圳弘美医疗美容门诊部",
              "四川省人民医院医疗集团友谊医院",
              "毛孔",
              "河南汇星医疗美容整形",
              "三文鱼",
              "黄雪琴",
              "唯颜医疗美容诊所",
              "重庆铂生医疗美容",
              "深圳米兰柏羽医疗美容门诊部",
              "重庆新瑞俪医疗美容",
              "北京雅靓医疗美容",
              "如何去黑头",
              "西安壹加壹医疗美容医院（西北旗舰店）",
              "深圳妍熙医疗美容门诊部",
              "针清祛痘",
              "下颚线",
              "正颌",
              "激光去痘印",
              "适合自己的发型",
              "脱发际线",
              "沈阳杏林整形外科医院",
              "内切去眼袋",
              "天津伊美尔医疗整形美容专科医院",
              "上眼睑下垂矫正",
              "鼻小柱延长",
              "洗纹身",
              "隐适美",
              "嘴巴整形",
              "北京华韩医疗美容医院",
              "检测脸型",
              "曼托",
              "苏州美莱美容医院",
              "侧脸。",
              "胶原蛋白注射",
              "北京京城皮肤美容医院",
              "上海颜范医美",
              "咬肌切除",
              "烤瓷牙",
              "拔智齿",
              "水光针188",
              "首尔丽格",
              "鼻翼",
              "长沙美莱医疗美容医院",
              "仁德",
              "颊脂垫",
              "北京达美如艺医疗美容",
              "重庆长良医疗美容",
              "丽珠兰",
              "鹅蛋脸适合什么发型",
              "吸脂瘦腰部",
              "沈阳童颜医疗美容门诊部",
              "武汉艺星医疗美容医院",
              "眶隔释放",
              "上海时光整形外科医院",
              "水动力吸脂",
              "重庆五洲整形",
              "男生",
              "成都八大处医疗美容医院",
              "缩鼻头",
              "深圳丽港丽格医疗美容",
              "玻尿酸填充卧蚕",
              "测测看发型",
              "重庆军科整形美容医院",
              "Fotona",
              "重庆美仑美奂医疗整形美容医院",
              "美白舱",
              "怎么侧脸",
              "脸型矫正",
              "自体肋软骨隆鼻",
              "适合的发型",
              "漂亮的美发",
              "肤质分析",
              "玻尿酸全脸填充",
              "鼻部",
              "韩妃",
              "正畸",
              "紧致提升",
              "二氧化碳点阵",
              "纹唇",
              "百达丽",
              "洗面奶",
              "颜值",
              "扫脸配发型",
              "联合丽格",
              "如何测发型",
              "上海仁爱医院",
              "川字纹",
              "瘦小腿",
              "时光",
              "毕胜",
              "我适合什么样的发型",
              "更美AI测脸",
              "超皮秒999",
              "上海知颜医疗美容",
              "美恩",
              "如何测脸型",
              "私处美白",
              "南京康美国际整形美容医院",
              "杭州格莱美医疗美容医院",
              "下颌角切除",
              "去双下巴",
              "丰额头",
              "广州艺美整形",
              "膨体垫鼻基底",
              "乔雅登雅致",
              "广州深美整形美容",
              "颜值测试",
              "杭州甄美医疗美容医院",
              "做头发",
              "威塑",
              "瑞丽",
              "动能素",
              "胶原蛋白填充祛黑眼圈",
              "妍熙",
              "鞠婧祎",
              "重庆玛恩玻尿酸",
              "额头缩小",
              "武汉五洲整形美容医院",
              "颧弓内推",
              "测测发型",
              "脸上长痘痘了怎么办",
              "牙齿贴面",
              "上海瑰丽医疗美容门诊部",
              "热玛吉5279",
              "果酸换肤",
              "鹏爱",
              "线雕鼻",
              "杭州时光医疗美容医院",
              "北京知音医疗美容",
              "激光",
              "自体脂肪面部填充",
              "泪沟明显",
              "胸部提升",
              "填充卧蚕",
              "皮秒祛斑",
              "瘦脸针下颌缘",
              "脂肪",
              "丹sir",
              "成都润美玉之光医疗美容",
              "成都恒博医疗美容",
              "昆明美伊莱医疗美容",
              "一键测脸",
              "男生整容",
              "easySCULPT怡脂",
              "半永久",
              "华中科技大学同济医学院医院",
              "脸型测试",
              "轮廓套餐",
              "颜范医疗美容武汉总院",
              "成都天使之翼医学美容医院",
              "男生发型",
              "干细胞填充",
              "北京星医汇医疗美容门诊部",
              "肉毒素去鱼尾纹",
              "激光祛眼袋",
              "成都西区安琪儿妇产医院",
              "傲诺拉",
              "全身美白",
              "重庆星荣整形外科医院",
              "墨镜侧脸",
              "自体脂肪祛黑眼圈",
              "鼻部修复",
              "康华清医疗美容门诊部",
              "野生眉",
              "云南华美美莱美容医院",
              "乳晕漂染",
              "上海和德门诊部有限公司",
              "圆脸发型",
              "塌鼻子",
              "北京领医医疗美容",
              "清华大学玉泉医院",
              "长曲线下颌角",
              "则一则你是什么脸",
              "进口瘦脸针",
              "眼部提肌",
              "湖南叶甄美医疗美容",
              "M22光子嫩肤特惠100元",
              "肉毒素瘦脸",
              "黄金微雕面部吸脂",
              "上睑提肌",
              "发型测试",
              "玛恩玻尿酸",
              "深圳优脂医疗美容",
              "杭州维多利亚医疗美容医院",
              "缩胸",
              "长沙爱思特医疗美容医院",
              "曙光",
              "变白",
              "福州爱美尔医疗美容",
              "皓齿美白",
              "合适发型",
              "冯啸",
              "深圳广和门诊部",
              "和颜美帕",
              "瓷贴面",
              "我属于什么脸型",
              "东莞美立方",
              "韩国4ever医疗美容（杭州院）",
              "眼部修复",
              "长沙梵童医疗美容门诊部",
              "不开刀去眼袋",
              "广州贝漾美天医疗美容",
              "时代天使",
              "上海医颜医疗美容门诊部",
              "植眉",
              "面部分析在哪里打开",
              "直播",
              "比基尼线脱毛",
              "成都菲尔瑞医疗美容",
              "种植眉毛",
              "武汉华美整形外科医院总院（中整协修复基地）",
              "光子嫩肤m22",
              "外眼角",
              "上海伊莱美医疗美容医院",
              "近视矫正",
              "嘴角上扬",
              "膨体垫眉弓",
              "昆明艺星医疗美容医院",
              "广州紫馨",
              "日式无痕双眼皮",
              "河南整形美容医院",
              "莫娜丽莎",
              "郑州华领医疗美容医院",
              "乳晕缩小",
              "超肋隆鼻",
              "扫脸",
              "美贝尔",
              "整形模拟",
              "祛斑祛色素",
              "整牙",
              "脂肪隆胸",
              "瘦脸针限时680",
              "武汉诠美医疗美容门诊部",
              "东国水光针",
              "切眉术",
              "昆明吴氏嘉美美容医院",
              "怎么测发型",
              "广州美莱",
              "看看我是什么脸型",
              "杭州美天美医疗美容门诊部有限公司",
              "G点注射",
              "bodytite黄金微雕",
              "中医药下颌角",
              "成都圣丹福整形美容医院",
              "下颌骨",
              "深圳颜美医疗美容门诊部",
              "缩小毛孔",
              "头发种植",
              "深圳鹏爱悦己医疗美容医院",
              "广美整形美容",
              "水氧活肤",
              "祛颈纹",
              "更美小助手",
              "co2点阵激光",
              "阴蒂整形",
              "深圳健丽医疗美容门诊部",
              "酒窝成形术",
              "武汉化蝶整形",
              "吸脂瘦腹部",
              "祛痘坑",
              "青岛华韩整形美容医院",
              "杭州瑞丽医疗美容医院",
              "妆容",
              "腹壁成形术",
              "西安尤美医疗美容诊所",
              "北京炫美医疗美容",
              "北京俏中关医疗美容门诊部",
              "颧骨高",
              "缩阴术",
              "眶隔释放术",
              "调Q激光净肤",
              "北京八大处",
              "医选",
              "半肋骨隆鼻",
              "短发",
              "武汉中翰整形外科医院",
              "上海奉浦医院",
              "皮肤",
              "深圳福雅医疗美容",
              "苏州康美美容医院",
              "唇形",
              "更美AI",
              "FAME芝洺国际医美",
              "测脸型。",
              "丰体针",
              "深圳谦达医疗美容",
              "干细胞",
              "测适合什么妆容",
              "泰州华美医疗美容",
              "激光去眼袋",
              "狐臭手术",
              "润月雅",
              "医院",
              "玻尿酸填充丰苹果肌",
              "郑州美莱",
              "剥脱型点阵激光",
              "南京华韩奇致美容医院",
              "罗海军",
              "润百颜玻尿酸",
              "缩人中",
              "染料激光",
              "内切眼袋眶隔释放",
              "全瓷牙",
              "南京美莱整形",
              "提升",
              "创美荟",
              "嘴唇外翻",
              "酷塑冷冻溶脂",
              "明星脸",
              "脸型眉毛",
              "双眼皮加宽",
              "半永久美瞳线",
              "武汉洪山月目医疗美容",
              "武汉美莱医疗美容医院",
              "杭州珠儿丽医疗美容",
              "乔雅登玻尿酸",
              "中医药肋",
              "脸部吸脂",
              "姣兰",
              "长沙南湖整形医疗美容医院（长沙南湖和睦医院）",
              "北京欧扬医疗美容门诊部",
              "瘦大腿",
              "全脸整形套餐",
              "SVF-gel脂肪胶",
              "假体垫下巴",
              "长沙亚韩医疗美容医院",
              "眼部整形",
              "武汉仁爱时光医疗美容",
              "下颚角切除",
              "比基尼脱毛",
              "调q",
              "长脸",
              "陈萍",
              "武汉美基元医疗美容医院",
              "南昌韩美美容医院",
              "玻尿酸填充",
              "耳软骨",
              "瘦肩膀",
              "DPL精准嫩肤",
              "郑州颜图丽人医疗美容",
              "艾莉薇（韩国）",
              "脂肪丰胸",
              "肉毒素去抬头纹",
              "埋线隆鼻",
              "紫馨",
              "成都鹏爱悦己医疗美容",
              "重庆联合丽格美容医院",
              "娃娃脸适合什么发型",
              "下颌线",
              "保妥适肉毒素",
              "闭口",
              "矫正牙套",
              "怡脂",
              "选择发型",
              "云南铜雀台整形美容医院",
              "aopt",
              "成都军建医院",
              "半永久纹唇",
              "孕睫术",
              "我是什么脸型",
              "杭州天鑫医疗整形（旗舰店）",
              "眼部",
              "怎么试发型",
              "嘴巴",
              "佛山美莱医疗美容医院",
              "怎么化妆",
              "成都艺美汇植发",
              "AI测脸",
              "额头",
              "阴茎延长",
              "长沙华韩华美医疗美容医院",
              "中医药微创颧骨",
              "爱思特",
              "广州瑞港医疗美容",
              "opt",
              "任东",
              "dpl",
              "玻尿酸嘟嘟唇",
              "深圳美瑞儿医疗美容门诊部",
              "杭州整形医院",
              "丰太阳穴",
              ]

city_list = {
"aba":298,
"akesu":299,
"alashan":300,
"aletai":301,
"ali":302,
"anding":303,
"ankang":304,
"anning":305,
"anqing":306,
"anshan":307,
"anshun":308,
"anyang":309,
"aomen":310,
"baicheng":311,
"baise":312,
"baisha":313,
"baishan":314,
"baiyin":315,
"baodi":316,
"baoding":317,
"baoji":318,
"baoshan":319,
"baoting":320,
"baotou":321,
"bayannaoer":322,
"bayinguoleng":323,
"bazhong":324,
"beibei":325,
"beichen":326,
"beihai":327,
"beijing":328,
"bengbu":329,
"benxi":330,
"bijie":331,
"binzhou":332,
"bishan":333,
"boertala":334,
"bozhou":335,
"cangzhou":336,
"changchun":337,
"changde":338,
"changdu":339,
"changji":340,
"changjiang":341,
"changping":342,
"changsha":343,
"changshou":344,
"changshu":345,
"changzhi":346,
"changzhou":347,
"chaohu":348,
"chaoyang":349,
"chaozhou":350,
"chengde":351,
"chengdu":352,
"chengkou":353,
"chengmai":354,
"chenzhou":355,
"chifeng":356,
"chizhou":357,
"chongming":358,
"chongqing":359,
"chongzuo":360,
"chuxiong":361,
"chuzhou":362,
"dagang":363,
"dali":364,
"dalian":365,
"dandong":366,
"dangzaidao":367,
"danzhou":368,
"daqing":369,
"datong":370,
"daxing":371,
"daxinganling":372,
"dazhou":373,
"dazu":374,
"dehong":375,
"deyang":376,
"dezhou":377,
"dianjiang":378,
"dingxi":379,
"diqing":380,
"dongfang":381,
"dongguan":382,
"dongjing":2669,
"dongli":383,
"dongyang":384,
"dongying":385,
"eerduosi":386,
"enshi":387,
"ezhou":388,
"fangchenggang":389,
"fangshan":390,
"fengduxian":391,
"fengjie":392,
"fengtai":393,
"fengxian":394,
"foshan":395,
"fulingqu":396,
"fushun":397,
"fuxin":398,
"fuyang":399,
"fuzhou":400,
"fuzhou1":401,
"gannan":402,
"ganzhou":403,
"ganzi":404,
"gaoxiong":405,
"geermu":406,
"guangan":407,
"guangyuan":408,
"guangzhou":409,
"guigang":410,
"guilin":411,
"guiyang":412,
"guoluo":413,
"guyuan":414,
"haerbin":415,
"haibei":416,
"haidian":417,
"haidong":418,
"haikou":419,
"hainanzangzuzizhizhou":420,
"haixi":421,
"hami":422,
"handan":423,
"hangu":424,
"hangzhou":425,
"hanzhong":426,
"haozhou":430,
"hebi":427,
"hechi":428,
"hechuanshi":429,
"hefei":430,
"hegang":431,
"heihe":432,
"hejin":433,
"hengshui":434,
"hengyang":435,
"hetian":436,
"heyuan":437,
"heze":438,
"hezhou":439,
"honghe":440,
"huaian":441,
"huaibei":442,
"huaihua":443,
"huainan":444,
"huairou":445,
"hualian":446,
"huanggang":447,
"huangnan":448,
"huangshan":449,
"huangshi":450,
"huhehaote":451,
"huizhou":452,
"huludao":453,
"hulunbeier":454,
"huzhou":455,
"jiading":456,
"jiamusi":457,
"jian":458,
"jiangjinshi":459,
"jiangmen":460,
"jiangyou":461,
"jiaozuo":462,
"jiaxing":463,
"jiayi":464,
"jiayuguan":465,
"jieyang":466,
"jilin1":467,
"jinan":468,
"jinchang":469,
"jincheng":470,
"jingdezhen":471,
"jinghai":472,
"jingjiang":1681,
"jingmen":473,
"jingzhou":474,
"jinhua":475,
"jining":476,
"jinnan":477,
"jinshan":478,
"jinzhong":479,
"jinzhou":480,
"jiujiang":481,
"jiulong":482,
"jiuquan":483,
"jixi":484,
"jixian":485,
"jiyuan":486,
"jizhoushi":2536,
"kaifeng":487,
"kaixian":488,
"kashi":489,
"kelamayi":490,
"kezile":491,
"kuerle":492,
"kunming":493,
"kunshan":494,
"laibin":495,
"laiwu":496,
"langfang":497,
"lanzhou":498,
"lasa":499,
"ledong":500,
"leshan":501,
"liangpingxian":502,
"liangshan":503,
"lianyungang":504,
"liaocheng":505,
"liaoyang":506,
"liaoyuan":507,
"lijiang":508,
"lincang":509,
"linfen":510,
"lingao":511,
"lingshui":512,
"linxia":513,
"linyi":514,
"linzhi":515,
"lishui":516,
"liuan":517,
"liupanshui":518,
"liuzhou":519,
"longnan":520,
"longyan":521,
"loudi":522,
"luhuandao":523,
"luohe":524,
"luoyang":525,
"luzhou":526,
"lvliang":527,
"maanshan":528,
"mangu":3936,
"maoming":529,
"meishan":530,
"meizhou":531,
"mentougou":532,
"mianyang":533,
"miaoli":534,
"minhang":535,
"miyun":536,
"mocheng":284,
"mudanjiang":537,
"nanchang":538,
"nanchong":539,
"nanchuan":540,
"nanhui":541,
"nanjing":542,
"nanning":543,
"nanping":544,
"nantong":545,
"nantou":546,
"nanyang":547,
"naqu":548,
"neijiang":549,
"ningbo":550,
"ningde":551,
"ninghe":552,
"nujiang":553,
"panjin":554,
"panzhihua":555,
"pengshui":556,
"pingdingshan":557,
"pingdong":558,
"pinggu":559,
"pingliang":560,
"pingxiang":561,
"pudong":562,
"puer":563,
"putian":564,
"puyang":565,
"qiandongnan":566,
"qianjiang":567,
"qianjiangtujia":568,
"qiannan":569,
"qianxinan":570,
"qijiang":571,
"qingdao":572,
"qingpu":573,
"qingyang":574,
"qingyuan":575,
"qinhuangdao":576,
"qinzhou":577,
"qionghai":578,
"qiongzhong":579,
"qiqihaer":580,
"qitaihe":581,
"quanzhou":582,
"qujing":583,
"quzhou":584,
"rikaze":585,
"rizhao":586,
"rongchang":587,
"rongcheng":588,
"sanmenxia":589,
"sanming":590,
"sanya":591,
"shanghai":592,
"shangluo":593,
"shangqiu":594,
"shangrao":595,
"shannan":596,
"shantou":597,
"shanwei":598,
"shaoguan":599,
"shaoxing":600,
"shaoyang":601,
"shengzhou":7401,
"shennongjia":602,
"shenyang":603,
"shenzhen":604,
"shihezi":605,
"shijiazhuang":606,
"shijingshan":607,
"shiyan":608,
"shizhongxin":609,
"shizhu":610,
"shizuishan":611,
"shouer":612,
"shuangyashan":613,
"shunde":1033,
"shunyi":614,
"shuozhou":615,
"siping":616,
"songjiang":617,
"songyuan":618,
"suihua":619,
"suining":620,
"suizhou":621,
"suqian":622,
"suzhou":623,
"suzhou1":624,
"tacheng":625,
"taian":626,
"taibei":627,
"taicang":628,
"taidong":629,
"tainan":630,
"taiyuan":631,
"taizhong":632,
"taizhou":633,
"taizhou1":634,
"tanggu":635,
"tangshan":636,
"taoyuan":637,
"tianjin":638,
"tianmen":639,
"tianshui":640,
"tieling":641,
"tongchuan":642,
"tonghua":643,
"tongliang":644,
"tongliao":645,
"tongling":646,
"tongnan":647,
"tongren":648,
"tongzhou":649,
"tulufan":650,
"tunchang":651,
"wanning":652,
"wansheng":653,
"wanzhou":654,
"weifang":655,
"weihai":656,
"weinan":657,
"wenchang":658,
"wenshan":659,
"wenzhou":660,
"wuhai":661,
"wuhan":662,
"wuhu":663,
"wulanchabu":664,
"wulong":665,
"wulumuqi":666,
"wuqing":667,
"wushanxian":668,
"wuwei":669,
"wuxi":670,
"wuzhishan":671,
"wuzhong":672,
"wuzhou":673,
"xiamen":674,
"xian":675,
"xianggangdao":677,
"xiangtan":678,
"xiangxi":679,
"xiangyang":676,
"xianning":680,
"xiantao":681,
"xianyang":682,
"xiaogan":683,
"xilinguole":684,
"xingan":685,
"xingtai":686,
"xini":7382,
"xining":687,
"xinjiapo":5188,
"xinjie":688,
"xinxiang":689,
"xinyang":690,
"xinyu":691,
"xinzhou":692,
"xinzhu":693,
"xiqing":694,
"xishuangbanna":695,
"xiushan":696,
"xuancheng":697,
"xuchang":698,
"xuzhou":699,
"yaan":700,
"yan an":701,
"yanbian":702,
"yancheng":703,
"yangjiang":704,
"yangquan":705,
"yangzhou":706,
"yanji":707,
"yanqing":708,
"yantai":709,
"yibin":710,
"yichang":711,
"yichun":712,
"yichun1":713,
"yilan":714,
"yili":715,
"yinchuan":716,
"yingkou":717,
"yingtan":718,
"yiwu":297,
"yiyang":719,
"yongchuanshi":720,
"yongzhou":721,
"youyang":722,
"yubei":723,
"yueyang":724,
"yulin":725,
"yulin1":726,
"yuncheng":727,
"yunfu":728,
"yunlin":729,
"yunyangxian":730,
"yushu":731,
"yuxi":732,
"zaozhuang":733,
"zhanghua":734,
"zhangjiagang":735,
"zhangjiajie":736,
"zhangjiakou":737,
"zhangshu":738,
"zhangye":739,
"zhangzhou":740,
"zhanjiang":741,
"zhaoqing":742,
"zhaotong":743,
"zhengzhou":744,
"zhenjiang":745,
"zhongshan":746,
"zhongwei":747,
"zhongxian":748,
"zhoukou":749,
"zhoushan":750,
"zhuhai":751,
"zhumadian":752,
"zhuzhou":753,
"zibo":754,
"zigong":755,
"ziyang":756,
"zunyi":757,

}
import requests
import redis

headers = {
    'X-GAIA-HELIOS-VERSION': '0.7.4',
    'X-GM-Request-Id': '123',
    'x-gm-path': '/60358/',
    'X-GM-Rpc-Method': 'rims/search/cpt_service',
}
# 正式
rds = redis.StrictRedis.from_url("redis://:XfkMCCdWDIU%ls$h3@172.16.50.159:6379", decode_responses=True)
# 测试
# rds = redis.StrictRedis.from_url("redis://172.18.51.17:6379/21", decode_responses=True)

for query in query_list:
    res = json.dumps(query)
    for city in city_list:
        try:
            key = "meigou_" + city + "_" + query
            # if rds.exists(key):
            #     continue
            data = {
                'requests': '[{"method": "rims/search/cpt_service", "params": {"sort_with_submission": true, '
                            '"city_id": "%s", "is_feed": false, "sort_type": 0, "sort_params": {"query": %s,'
                            ' "user_city_tag_id": %s, "in_whitelist": true,"device_id": '
                            '"868741039702733996"}, "filters": {}, "offset":0, "query": %s, '
                            '"size": 100, "is_operation_cpt": true, "is_merchant_cpt": true, '
                            '"device_id": "860281041353608", "user_city_tag_id": %s}, "timeout": 120}]' %
                            (city,str(res),city_list[city],str(res),city_list[city])
            }
            # print(data)
            # 正式
            response = requests.post('http://172.16.50.10:8170/v1/batch', headers=headers, data=data)
            # 测试
            # response = requests.post('http://rims.paas-develop.env/v1/batch', headers=headers, data=data)
            data = json.dumps(response.json())
            # time.sleep(0.1)

            print(key)
            rds.set(key,data)
        except Exception as e:
            print(e)
            continue
        # break