Setup push alerts using Google Scripts and Pushbullet
Use this as a Google Script to setup BSE announcement alerts for your stock watchlist.
-
Create a new spreadsheet in your Google Drive. Label the headers for columns A to C as
nse, bse & last_updated
. Note the speadsheet ID. Here's how to find it - https://developers.google.com/sheets/api/guides/concepts. -
Populate the
nse & bse
columns with the NSE Symbols and BSE Codes of stocks you want to track (you can use this mapping dataset to speed up the process - https://github.com/uptickr/datasets/blob/master/datasets/nse_bse_codeMap.csv). -
Create a Pushbullet account. Install the app on your phone. Go to the pushbullet website, head to "My Account" and then create an access token. Note this token.
-
Create a new script file in your Google Drive (see tutorial on creating standalone scripts). Clear any existing code. Copy and paste the contents of bseNoticeAlerts.gs in it. Enter your spreadsheet ID and access token in the
store
object in thealertBot
function. -
Finally, setup triggers for the
alertBot
function by going to "Edit" > "Current project's triggers" to have Google run the function automatically at regular intervals (preferably every minute).