Skip to content

Instantly share code, notes, and snippets.

@ganigithub
Created June 29, 2022 06:28
Show Gist options
  • Save ganigithub/5456b8b3441f57e94cfc9c8a15db63db to your computer and use it in GitHub Desktop.
Save ganigithub/5456b8b3441f57e94cfc9c8a15db63db to your computer and use it in GitHub Desktop.
# 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