Skip to content

Instantly share code, notes, and snippets.

@ganigithub
Last active July 21, 2022 07:12
Show Gist options
  • Save ganigithub/608d8c8ab43d48f2e3754af56e369472 to your computer and use it in GitHub Desktop.
Save ganigithub/608d8c8ab43d48f2e3754af56e369472 to your computer and use it in GitHub Desktop.
from kiteconnect import KiteConnect
from selenium import webdriver
api_key = <YOUR API KEY>
api_secret = <YOUR API SECRET>
chromedriver_path = <PATH TO YOUR CHROMEDRIVER>
kite = KiteConnect(api_key = api_key)
#start chrome using selenium webdriver
service = webdriver.chrome.service.Service(f'{chromedriver_path}//chromedriver.exe')
service.start()
options = webdriver.ChromeOptions()
options = options.to_capabilities()
driver = webdriver.Remote(service.service_url, options)
driver.get(kite.login_url())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment