This script scrapes the information of stocks you own through MeroShare and scrapes the live information of those stocks from (http://nepalstock.com/todaysprice) and mails the information of the stocks from desired email to desired email.
This script can be scheduled with Windows Scheduler or in Linux to automatically run the script everyday after the market closes or as required.
pip install -r requirements.txt
or
python3 -m pip install -r requirements.txt
username=MeroshareUsername
password=MerosharePassword
dpNumber=dpNumber
sender_email=email
sender_password =App-password
recipient_email=email
Note: Google no longer accepts password directly through SMTPLIB as it is considered as insecure. But you can use App-Passwords to access gmail. Learn how to do this through here
python ./my_stocks.py
or
python3 ./my_stocks.py
I don't consider this project complete yet. I'll add more features as I get ideas on what to add.