Python schedule scraper
- beautifulsoup4
- pytz
- requests
from polyschedule import Schedule
schedule = Schedule('181-722')
print(schedule.group_exists())
from polyschedule import Schedule
schedule = Schedule('181-722')
for lesson in schedule.get_today_schedule():
print(lesson)
from polyschedule import Schedule
schedule = Schedule('181-722')
for lesson in schedule.get_schedule_by_date(datetime.datetime(2020, 11, 6)):
print(lesson)
from polyschedule import Schedule
schedule = Schedule('181-722')
for weekday, lessons in schedule.get_schedule_for_week().items():
print(f'{weekday}:')
for lesson in lessons:
print(lesson)
from polyschedule import Schedule
schedule = Schedule('181-722')
for weekday, lessons in schedule.get_schedule_for_week_by_date(datetime.datetime(2020, 11, 6)).items():
print(f'{weekday}:')
for lesson in lessons:
print(lesson)
from polyschedule import Schedule
schedule = Schedule('181-722')
for lesson in schedule.get_schedule_session_by_date(datetime.datetime(2020, 11, 6)):
print(lesson)
from polyschedule import Schedule
schedule = Schedule('181-722')
for date, lessons in schedule.get_schedule_session().items():
print(f'{date}:')
for lesson in lessons:
print(lesson)