driver = webdriver.Edge(service=edge_service)
# Open the website
driver.get("https://www.business-standard.com/markets/stock-companies-list")
# Print the title of the webpage
print(driver.title)
except WebDriverException as e:
print(f"WebDriver error: {e}")
finally:
Ensure WebDriver is closed properly
driver.quit()
When I trying to run the above code the following bug I am finding please help me
PS C:\Users\hp\vscode\python And LIbraries> python -u "c:\Users\hp\vscode\python And LIbraries\a.py"
DevTools listening on ws://127.0.0.1:49226/devtools/browser/d90cfc01-a867-4a69-a7aa-a4bc5e506916
[23144:22304:0911/003203.928:ERROR:ssl_client_socket_impl.cc(1048)] handshake failed; returned -1, SSL error code 1, net_error -101
[23144:22304:0911/003203.976:ERROR:ssl_client_socket_impl.cc(1048)] handshake failed; returned -1, SSL error code 1, net_error -101
All Listed Companies List in NSE/BSE - India Stock Market
from selenium import webdriver from selenium.webdriver.edge.service import Service from selenium.common.exceptions import WebDriverException
Path to the Edge WebDriver executable
edge_service = Service(executable_path="C:\Program Files (x86)\Driver\msedgedriver.exe")
try:
Initialize the Edge WebDriver
except WebDriverException as e: print(f"WebDriver error: {e}") finally:
Ensure WebDriver is closed properly
When I trying to run the above code the following bug I am finding please help me PS C:\Users\hp\vscode\python And LIbraries> python -u "c:\Users\hp\vscode\python And LIbraries\a.py"
DevTools listening on ws://127.0.0.1:49226/devtools/browser/d90cfc01-a867-4a69-a7aa-a4bc5e506916 [23144:22304:0911/003203.928:ERROR:ssl_client_socket_impl.cc(1048)] handshake failed; returned -1, SSL error code 1, net_error -101 [23144:22304:0911/003203.976:ERROR:ssl_client_socket_impl.cc(1048)] handshake failed; returned -1, SSL error code 1, net_error -101 All Listed Companies List in NSE/BSE - India Stock Market