Created
June 29, 2022 06:28
-
-
Save ganigithub/5456b8b3441f57e94cfc9c8a15db63db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# launch chrome and open zerodha website | |
from selenium import webdriver | |
from time import sleep | |
from pyotp import TOTP | |
kite = KiteConnect(api_key) | |
service = webdriver.chrome.service.Service('./chromedriver.exe') | |
service.start() | |
options = webdriver.ChromeOptions() | |
options = options.to_capabilities() | |
driver = webdriver.Remote(service.service_url, options) | |
driver.get(kite.login_url()) | |
driver.maximize_window() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment