DividendCalendar is a simple Python script used to populate a dedicated Google Calendar with ex-dividend dates of selected stocks. The yfinance package is leveraged to obtain the dividend information, and the Google Calendar API is obviously used to add calendar entries. Detailed information about the Google API for Python is available on the Github repo, but the official Google API quickstart guide is the best starting point for understanding the DividendCalendar script.
OAuth 2.0 credentials must be used to create/delete calendar entries. These credentials (OAuth Client ID) are generated in the Google Cloud Platform console. A key limitation with the free tier is that the credentials lifetime is only 7 days. so manual token generation is needed.