uzaxirr / Codeforces-2-GoogleCalendar

MIT License
6 stars 1 forks source link

GitHub forks GitHub Repo stars GitHub followers Bitbucket open issues APM [![LinkedIn][linkedin-shield]][linkedin-url]

Codeforces-2-GoogleCalender

Add Codeforces Div 1, Div 2, or Div 3 contest Date and time to your Google Calender ## Usage [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1DVf6zW1nSSL1d1g3wtijBqbwYzNhdYYa#scrollTo=-5ZT0cGNmAlS) 1. Click on Open on Colab this should open an Google Colaboratory Notebook Alternatively you can also go to the below link: https://colab.research.google.com/drive/1DVf6zW1nSSL1d1g3wtijBqbwYzNhdYYa#scrollTo=-5ZT0cGNmAlS \ And create a copy of notebook in your drive ![save](https://github.com/uzair-ali10/Codeforces-2-GoogleCalendar/blob/main/images/save_copy.jpg) 2. Here you can give the calender id of the calender in which u wish the events to be created, Or you can also give your email address this will create all the events in your main calendar.\ Learn more about calender id [here](https://docs.simplecalendar.io/find-google-calendar-id/) ![Edit ID](https://github.com/uzair-ali10/Codeforces-2-GoogleCalendar/blob/main/images/edit_id.jpg) Edit the division for which you want to add events it should be in the format as shown below: \ for Div 1: \ ![div1](https://github.com/uzair-ali10/Codeforces-2-GoogleCalendar/blob/main/images/div1.jpg) for Div 2: \ ![div2](https://github.com/uzair-ali10/Codeforces-2-GoogleCalendar/blob/main/images/div2.jpg) \ for Div 3: \ ![div3](https://github.com/uzair-ali10/Codeforces-2-GoogleCalendar/blob/main/images/div3.jpg) 3. Run the first block i.e `pip install datefinder` 4. Download the `credentials.json` file from the repository and upload it into collab and the run the second block. 5. Now you'll be required to do an Oauth go to the link in output, select the google account in which you wish to create events and proceed as follows: ![advance](https://github.com/uzair-ali10/Codeforces-2-GoogleCalendar/blob/main/images/advanced.jpg) ![advance](https://github.com/uzair-ali10/Codeforces-2-GoogleCalendar/blob/main/images/goto.jpg) Now grant permissions to create events in calender and then you'll be prmted with code paste it in the output of 2nd Block of collab 6. Now run the 3rd Block of collab (it may take a miniute to execute) 7. Now you are **All done** check your Google calendar ## License Distributed under the MIT License. See `LICENSE` for more information. [license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=for-the-badge [license-url]: https://github.com/othneildrew/Best-README-Template/blob/master/LICENSE.txt [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555 [linkedin-url]: https://www.linkedin.com/in/uzair-ali-9285261ba/