Skip to main content

Zerodha Login Automation - Selenium Based

Project description

Zerodha Login Automated; Supported by Lambda function that processes the redirect rul and stores accessk key to DynamoDB AND GCP function that automates login through headless chrome

Context

This code is for a python package for automated login to Zerodha. The redirect URL is not handled here - Separate Repo with a container that runs as a lambda function saves the access token to dynamoDB

How to productionalize

  • Get Zerodha (kite.trade) account for API based access to the platform.

  • Create a '.zerodha' file in your home directory (Sample provided - check .zerodha.sample file)

    • Needed Variables in File are Zerodha API keys/secret
  • Checkout zlogin-puppeteer repository that automates login process (using headless chrome)

  • Check out the zerodha-dynamodb-save-accesstoken repository to set up a lambda function to handle Zerodha redirect url (it saves the access token in the save_access table in dynamodb)

  • Install zlogin package from pypi, "pip install zlogin"

import zlogin
access_token = zlogin.fetch_access_token()

This repo is a sister repo with zerodha-dynamodb-save-accesstoken & zlogin-puppeteer tools which has a container code for lambda function that handles storage of access token to dynamodb;

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zlogin-0.0.7.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

zlogin-0.0.7-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page