This tool automates the process of filling out the Texas Workforce Commission (TWC) Work Search Log PDF using events from your Google Calendar.
- Go: Ensure you have Go installed (v1.18+ recommended).
- Google Cloud Project:
- Create a project in Google Cloud Console.
- Enable the Google Calendar API.
- Create OAuth 2.0 Client IDs (Desktop app).
- Download the JSON file and save it as
credentials.jsonin the project root.
- PDF Template: Ensure
work-search-log-twc.pdfis in the project root.
- Clone the repository.
- Run
go mod tidyto install dependencies. - Place your
credentials.jsonin the root directory.
Run the tool:
go run main.goOn the first run, it will ask you to visit a URL to authorize the application. Copy the authorization code and paste it into the terminal.
The tool will:
- Fetch events from your primary Google Calendar for the current week (starting Sunday).
- Map the events to the Work Search Log form fields.
- Generate a filled PDF named
filled-work-search-log.pdf.
The tool currently defaults to:
- Week: Current week (Sunday to Saturday).
- Activity Type: "Interview/Meeting" (default).
- Job Type: "Software Engineering" (default).
- Organization: Uses the event title.
- Address: Uses the event location (if available).
- Missing Form Data: If you see errors about missing form data, ensure the PDF template matches the expected structure.
- Authentication: If authentication fails, delete
token.jsonand try again.