Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

olijeffers0n/MySchedule.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySchedule.py

Description

This is an API wrapper for the McDonald's MySchedule website.

Usage:

Install with:

pip install MySchedule.py

Getting Shifts

from schedule import ScheduleAPI
from datetime import datetime

api = ScheduleAPI("USERID", "PASSWORD")
api.login()
print(api.get_shifts_for_date(datetime.now()))

This will print out the shifts for the current week.

Getting Timecard

from schedule import ScheduleAPI

api = ScheduleAPI("USERID", "PASSWORD")
api.login()

timecard = api.get_timecard()

for shift in timecard:
    print(f"{shift.date} Breakdown:")
    print(f"Duration Clocked In: {shift.time_clocked_in}")
    print(f"Duration Clocked Out: {shift.time_clocked_out}")

This will print a breakdown of each shift's timecard and how long you were clocked in and out for.

About

An API wrapper for the McDonald's Schedule platform

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages