url
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的主要内容,如果未能解决你的问题,请参考以下文章
结合两个代码片段?将用户输入的 Youtube url 转换为嵌入 url,然后将 iframe src 替换为转换后的 url
项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde(代码片段