Automate essential Zerodha tasks efficiently using Selenium and ChromeDriver.
This tool has been developed to cater to the needs of the Unofficed community. Unofficed is a vibrant community of traders, developers, and enthusiasts passionate about financial markets and trading strategies.
Visit the Unofficed Community Chat to engage in discussions, share insights, and collaborate with fellow members. Join the community to explore a wealth of knowledge and resources related to trading and financial markets.
Before running the script, ensure you have the following:
- Python installed on your system.
- ChromeDriver installed and located in the same folder as the script. You can download ChromeDriver from here.
Clone the repository to your local machine:
git clone https://github.com/yourusername/Zerodha-Selenium-Login.git
Update the zerodha_screenshot.py file with your Zerodha credentials:
zerodha_username = "your_username"
zerodha_password = "your_password"
zerodha_totp = "your_totp"
###Usage Run the script to automate the Zerodha login process. The script will perform the following steps:
- Open a headless Chrome browser.
- Navigate to the Zerodha login page.
- Fill in your username and password.
- Enter your TOTP (Time-Based One-Time Password) generated from your authenticator app.
- Capture a screenshot of the Zerodha dashboard and save it as a timestamped PNG file.
python zerodha_screenshot.py
Automating the login process for your Zerodha account can be efficiently accomplished using Python and Selenium.
Below is a step-by-step guide to automate your Zerodha login:
-
Download Required Files: Begin by downloading the the
zer_login_exe.zip
file and unzip it. -
Update Credentials: Open the JSON file within the downloaded files and update your Zerodha account credentials, which should include your username and password.
-
Run the Executable: Execute the downloaded .exe file. This action will automatically open the Zerodha website and log you into your account.
-
Optional: Decompilation (for Educational Purposes): If you're interested in gaining insights into the automation code, you can decompile the .exe file. It's intentionally unprotected to facilitate educational use. Verify if the code within the .exe matches the
zer_login.py
file.
By following these steps, you can seamlessly automate the login process for your Zerodha account using Python and Selenium. Always remember to use automation responsibly and in accordance with the platform's terms of service.
License This project is licensed under the MIT License - see the LICENSE file for details.