from sqlalchemy import create_engine # 线上数据库连接字符串 # host = "139.186.151.174" # port = 3306 # user = "hcst" # passwd = "hcst@2020" # db = 'jeecg-boot' # charset = 'utf8' # db_con_str = "mysql+pymysql://%s:%s@%s:%d/%s" % ("readonly", "hcst@2021", "139.186.27.96", 4000, "jeecg-boot") # 测试数据库连接字符串 host = "139.186.151.174" port = 3306 user = "hcst" passwd = "hcst@2020" db = 'jeecg-boot' charset = 'utf8' db_con_str = "mysql+pymysql://%s:%s@%s:%d/%s" % ("hcst", "hcst@2020", "139.186.151.174", 3306, "jeecg-boot") engine = create_engine(db_con_str, connect_args={'charset': 'utf8'}) headers = {'Content-Type': 'application/json'} # 创建计划url create_campaign_url = "http://192.168.1.8:8080/jeecg-boot/kuaishou/create/campaignCreate" # 获取上新视频url get_new_video_url = "http://192.168.1.8:8080/jeecg-boot/kuaishou/material/getNewVideoList" # 获取历史视频url get_history_video_url = "http://192.168.1.8:8080/jeecg-boot/kuaishou/material/getHistoryVideoList" # 创建组和创意url create_group_and_creative_url = "http://192.168.1.8:8080/jeecg-boot/kuaishou/create/createUnitAndCreative" # 获取历史遗漏视频url get_historical_missing_video_url = "http://192.168.1.8:8080/jeecg-boot/kuaishou/material/getHistoryVideoList" # 获取历史高质量视频url get_historical_high_quality_video_url = "http://192.168.1.8:8080/jeecg-boot/kuaishou/material/getHistoryTopVideoList" # ai 策略请求url ai_strategy_request_url = 'http://127.0.0.1:31012/ai_strategy_request' # 补充历史遗落素材的个数 historical_missing_video_cnt = 100 # 近多少天的爆量视频 high_quality_video_days = 14 high_quality_video_cnt = 100 # 账户当天创意上新数 full_creative_cnt = 2000