This tool automates the process of finding the top Indian stocks by aggregating data from:
- Google News: Recent articles and market analysis.
- YouTube: Trending videos from financial influencers and analysts.
- Python 3.x installed.
- Open your terminal or command prompt.
- Navigate to this directory.
- Install the required dependencies:
pip install -r requirements.txt
Run the main script:
python main.pyFollow the on-screen prompts to input your search queries (e.g., "Penny stocks India", "Blue chip stocks 2026") or press Enter to use the optimized defaults.
- The tool displays a summary in the terminal.
- It also saves a text file
stock_report.txtwith the links for later reference.
If you see errors like 'python' is not recognized or 'pip' is not recognized:
- Install Python: Ensure Python is installed from python.org.
- Add to PATH: During installation, check the box "Add Python to PATH".
- Try Python Launcher: Try using
python3orpyinstead ofpython:python3 -m pip install -r requirements.txt python3 main.py
The tool automatically generates a visual summary stock_infographic.png using a "Nano Banan" inspired aesthetic (Neon Green on Dark Blue).
The tool is configured to email reports to varunlakebright04@gmail.com.
Setup:
- Get an App Password for the sender account (
varunlakebright04@gmail.com):- Go to Google Account > Security > 2-Step Verification > App passwords.
- Create one for "Mail" / "Windows Computer".
- Set Environment Variables:
- PowerShell:
$env:GMAIL_USER = "varunlakebright04@gmail.com" $env:GMAIL_PASS = "nlor yqzy rtxe jjow"
- CMD:
set GMAIL_USER=varunlakebright04@gmail.com set GMAIL_PASS=nlor yqzy rtxe jjow
- PowerShell:
To run this weekly:
- Open Task Scheduler.
- Create a Basic Task -> "Weekly Stock Report".
- Trigger: Weekly (select your day).
- Action: Start a program.
- Program:
python(or full path to python.exe) - Arguments:
main.py --auto - Start in:
c:\Users\OM\Documents\stock market
- Program: