This project demonstrates how to integrate Selenium with Google Calendar API in Java. It is extended for personal use to automate the process of logging into a web portal to acquire upcoming shifts and creating Google Calendar events based on the scraped shift information.
- Log in to the QSS web portal to acquire upcoming shifts.
- Scrape information about the shifts and create Google Calendar events using Google APIs.
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git
-
Navigate to the project directory:
cd your-repository
-
Install the required dependencies. You can use Maven or Gradle:
mvn install
or
gradle build
-
Add your
credentials.json
file to the root directory. You can obtain this file from the Google Developers Console. -
Configure your
config.properties
file with the necessary details like the website URL, username, and password.
To run the project, execute the main class:
java -cp target/your-project.jar com.yourpackage.CalendarQuickstart
or
gradle clean
gradle build
gradle run
Feel free to fork the repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.