jsonParam = dict(jsonResult_30.items() + jsonResult_60.items() + jsonResult_D.items() + jsonResult_W.items() + jsonResult_b_30.items() + jsonResult_b_60.items() + jsonResult_b_D.items() + jsonResult_b_W.items() + jsonDic.items()) #insertRecord_param(jsonParam, collectionName) except (IOError, TypeError, NameError, IndexError,Exception) as e: logging.error("error:" + codeItem) print e return xinhao ''' ######################## 主运行函数main ######################## ''' count = len(sys.argv) if (count == 2): print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + '=====my_code_json_mongo_email Start=====' #param = sys.argv[1] #print param execute_param() print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + '=====my_code_json_mongo_email End=====' else: print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + '=====my_code_json_mongo_email Start=====' query_result = ['000980','601633','600686','601777','000572','000625'] strategy001(query_result, '【主题】中国汽车品牌', collectionName) print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + '=====my_code_json_mongo_email End====='
logging.error("error:" + codeItem) print e return xinhao ''' ######################## 主运行函数main ######################## ''' count = len(sys.argv) if (count == 2): print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime( time.time())) + '=====my_code_json_mongo_email Start=====' #param = sys.argv[1] #print param execute_param() print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime( time.time())) + '=====my_code_json_mongo_email End=====' else: print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime( time.time())) + '=====my_code_json_mongo_email Start=====' query_result = [ '002273', '002281', '300331', '300098', '002635', '300322', '002138', '002384', '000049', '300207', '300433', '300083', '300327' ] strategy001(query_result, '【主题】苹果供应链', collectionName) print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime( time.time())) + '=====my_code_json_mongo_email End====='
######################## ''' count = len(sys.argv) if (count == 2): print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime( time.time())) + '=====my_code_json_mongo_email Start=====' #param = sys.argv[1] #print param execute_param() print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime( time.time())) + '=====my_code_json_mongo_email End=====' else: print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime( time.time())) + '=====my_code_json_mongo_email Start=====' ''' 常量:贵金属 #黄金白银: 600547 山东黄金 002716 金贵银业 600891 秋林集团 #金属锑矿 002155 湖南黄金 601020 华钰矿业 ''' query_result = ['600547', '002716', '600891', '002155', '601020'] strategy001(query_result, '【主题】有色金属', collectionName) print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime( time.time())) + '=====my_code_json_mongo_email End====='
#芯片封装 #长电科技 600584 #通富微电 002156 #华天科技 002185 #上游材料 #南大光电 300346 #濮阳惠成 300481 #上海新阳 300236 query_result = [ '600667', '603929', '600703', '300323', '300327', '600584', '002156', '002185', '300346', '300481', '300236' ] strategy001(query_result, '【主题】半导体产业链', collectionName) #000415 渤海金控 #600830 香溢融通 query_result = ['000415', '600830'] strategy001(query_result, '【主题】融资租赁', collectionName) #600183 生益科技 #002636 金安国纪 #603228 景旺电子 query_result = ['600183', '002636', '603228'] strategy001(query_result, '【主题】PCB覆铜板', collectionName) #300316 晶盛机电 #601012 隆基股份 query_result = ['300316', '601012']
print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime( time.time())) + '=====my_code_json_mongo_email Start=====' ''' 【主题】蚂蚁金服360 蚂蚁金服上市 002208 合肥城建 601206 君正集团 600895 张江高科 360上市 000839 中信国安 300015 爱尔眼科 600084 中葡股份 ''' query_result = ['002208', '601206', '600895', '000839', '300015', '600084'] strategy001(query_result, '【主题】蚂蚁360上市', collectionName) ''' 血制品 300294 博雅生物 002007 华兰生物 涨价 002449 国星光电 矾铁涨价 002326 永太科技 萤石涨价 钛白粉 002136 安纳达 002601 佰利联 002145 中核钛白 ''' query_result = ['002136', '002601', '002145']
002230 科大讯飞 300131 英唐智控 002439 启明星辰 投资达闼科技 人工智能机器人 ################################## ''' collectionName = "report_ZNZZ_" + time.strftime('%Y-%m-%d', time.localtime(time.time())) ''' ######################## 主运行函数main ######################## ''' count = len(sys.argv) if (count == 2): print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + '=====my_code_json_mongo_email Start=====' #param = sys.argv[1] #print param print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + '=====my_code_json_mongo_email End=====' else: print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + '=====my_code_json_mongo_email Start=====' #002230 科大讯飞 #300131 英唐智控 #002439 启明星辰 #300222 科大智能 #300044 赛为智能 query_result = ['002230','300131','002439','300222','300044'] strategy001(query_result, '【主题】人工智能', collectionName) print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())) + '=====my_code_json_mongo_email End====='