This script was designed to automate the process of adding events to my Google Calendar for tracking my 60-day preparation window for placements. It creates a series of events named "Day-1", "Day-2", and so on, covering the specified date range.
- Go to the Google Cloud Console.
- Create a new project and enable the Google Calendar API.
- Create credentials (OAuth client ID) and download the credentials file in JSON format.
- Save the downloaded credentials file as
credentials.json
in the same directory as the Python script.
Install the required Python libraries by running the following command in your command line or terminal:
pip install google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client
Update the script with the following details:
- Replace
'Your_Timezone'
in the script with your desired timezone (e.g., 'America/New_York', 'Europe/London', etc.). - Modify the
start_date
andend_date
variables to define your desired date range.
- Execute the Python script in your preferred Python environment.
- The script will prompt you to authorize access to your Google Calendar account.
- Once authorized, it will start adding the events to your Google Calendar one by one.
If you have any specific requirements or improvements in mind, you can modify the script as needed. For example, you could add more information to the event's description or set different time intervals between events. The script can be extended to include additional functionalities based on your preferences.
Please feel free to make the necessary modifications to suit your unique needs.
Enjoy using this automation to keep track of your placement preparation!