Last active
July 21, 2022 07:12
-
-
Save ganigithub/608d8c8ab43d48f2e3754af56e369472 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
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