AG
Size: a a a
AG
S
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))) - skipping
S
S
И
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))) - skipping
S
И
S
И
ГП
ГП
И
ГП
ГП
PK
ГП
PK
PK
def create_driver():
return webdriver.Chrome(chrome_path)
def do_somethog_with_driver(driver):
driver.get('https://google.com')
driver.execute_script("alert(test)")
return 'Ok'
if __name__ == "__main__":
# Создаем драйвер
driver = create_driver()
# Пераем его в функцию где исполузуем его
do_somethog_with_driver(driver)
# Закрываем
driver.quit()