首页 > 代码库 > 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