Skip to content

Scraper and Selenium Login Automator for Zerodha Kite

Notifications You must be signed in to change notification settings

vrishank97/kitescraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scraper and Login Automator for Zerodha Kite

Build

Installing the library

You can install the release via pip

pip install kitescraper

API usage

from kitescraper.login import KiteHelper
from kitescraper.scrape import KiteScraper

kitehelper = KiteHelper(apikey="", apisecret="", username="", password="", pin="")

kite = kitehelper.GetKite()

scraper = KiteScraper(kite)

symbols = ["RELIANCE", "ACC", "HDFCBANK"]

for symbol in symbols:
    s = scraper.GetInstrumentTokenforSymbol(symbol)
    df = scraper.GetSymbolHistoricalData(instrument_token=s, start='2016-01-01', end='2021-05-01', interval='minute')
    df.to_csv("{}.csv".format(symbol))

About

Scraper and Selenium Login Automator for Zerodha Kite

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages