首页 > 代码库 > url
url
#coding=utf-8 import time import os from selenium import webdriver path_cwd = os.getcwd() file_name = ‘chromedriver.exe‘ #file_name = ‘IEDriverServer.exe‘ file_bmd_name = ‘bmd.txt‘ path = os.path.join(path_cwd, file_name) path1 = os.path.join(path_cwd, file_bmd_name) driver = webdriver.Ie(executable_path=path) n = ‘pwx435657‘ p = ‘pH_143374‘ # remake = ‘上海不需要监控的项目,添加白名单‘ url = ‘http://w3.huawei.com/eso/miqs/deploy/ciAction.do?method=searchCIList&catalogId=10021‘ list_m = [] for i in open(path1, ‘r‘): list_m.append(i) cou = len(list_m) # for l in list_m: # ci_name = l.strip(‘\n‘) year = time.strftime(‘%Y‘, time.localtime(time.time())) month = time.strftime(‘%m‘, time.localtime(time.time())) day = time.strftime(‘%d‘, time.localtime(time.time())) s = int(day) - 1 s1 = int(year) + 3 start_date = str(year) + ‘-‘ + str(month) + ‘-‘ + str(s) end_date = str(s1) + ‘-‘ + str(month) + ‘-‘ + str(s) class Value(): def __init__(self): self.driver = driver self.n = n self.p = p # self.remake = remake self.url = url self.start_date = start_date self.end_date = end_date self.cou = cou self.list_m = list_m
url
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。