diff --git a/__init__.py b/__init__.py index 68a5862..cdb9529 100644 --- a/__init__.py +++ b/__init__.py @@ -1,13 +1,16 @@ -from gcalendar import api +from gcalendar import calendar_api import json import pprint -api = api(r'api_info\client_secret.json','api_info') + +api = calendar_api("class", r"api_info\client_secret.json", "api_info") cals = api.get_calendars() -cal = next(filter(lambda cal: cal['id'] == api.ids['school schedule'],cals)) -with open('classes.json') as file: +cal = next( + filter(lambda cal: cal["id"] == api.ids["Raphael's School Schedule".lower()], cals) +) +with open("classes.json") as file: bodies = json.load(file) for body in bodies: # body['colorId'] = cal['colorId'] # pprint.pprint(body) # input() - api.create_event('school schedule',body) \ No newline at end of file + api.create_event("Raphael's School Schedule".lower(), body) diff --git a/schedule.html b/schedule.html index 7917b17..9076169 100644 --- a/schedule.html +++ b/schedule.html @@ -1,14 +1,12 @@ - - - - + + - - + + Student Detail Schedule - - + +
-Go to Main Content -

SCT WWW Information System

- +Go to Main Content +

SCT WWW Information System

+

-Skip Module Navigation Links - - - - - -
- - - - - - - - - - - -
-Personal Information - -Tab Corner Right - -Student - -Tab Corner Right - -Financial Aid - -Tab Corner Right - -Faculty Services - -Tab Corner Right -
-
Transparent Image
+Skip Module Navigation Links +

+ + + + +
+ + + + + + + + + + + +
+Personal Information + +Tab Corner Right + +Student + +Tab Corner Right + +Financial Aid + +Tab Corner Right + +Faculty Services + +Tab Corner Right +
+
Transparent Image
-
+ -
- - -
+ + + + - + +

-
Search - - - + + +
-

- -RETURN TO MENU +

+ +RETURN TO MENU | SITE MAP | -HELP +HELP | EXIT -

- +
+
- - -
+ + + - + - + + - + -

Student Detail Schedule

-
+   -

-

+

+

000645225 Raphael L. Roberts
-Spring 2019
-Jan 06, 2019 07:50 pm
+Fall 2019
+Aug 26, 2019 03:02 am
-
Transparent ImageTransparent Image
+
-
+
-
Information Class Schedule
+
Information Class Schedule
The Schedule of Classes contains important information you should know including but not limited to: registering for classes, add/drop dates, semester calendars, final exam schedule, tuition/fees rates, and how to make payments or request a payment plan. If there are questions we can answer for you, please contact the Registration Office.

-Remember to review your class schedule prior to the first day of classes for possible changes in class location and times.

-Total Credit Hours: 15.000 -
-
- - - - +Remember to review your class schedule prior to the first day of classes for possible changes in class location and times.

Human Origins: Introduction To Biological Anthropology - ANTH 215 - 1
Associated Term:Spring 2019

+Total Credit Hours: 16.000 +
+
+ + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + -
Computer Organization - CS 301 - 2
Associated Term:Fall 2019
CRN:24651CRN:10335
Status:**Web Registered** on Jan 04, 2019Status:**Web Registered** on Aug 25, 2019
Assigned Instructor: -Lesa C. DavisE-mail -Assigned Instructor: +Pericles PrezasE-mail +
Grade Mode:StandardGrade Mode:Standard
Credits: 3.000Credits: 3.000
Level:UndergraduateLevel:Undergraduate
Campus:Main CampusCampus:Main Campus
- - - - - - - - - +
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
+ + + + + + + + + - - - - - - - + + + + + + + -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class11:30 am - 12:45 pmMWBernard J Brommel Hall 156Jan 07, 2019 - May 07, 2019LectureLesa C Davis (P)E-mailClass4:15 pm - 5:30 pmTRLech Walesa Hall 3046Aug 26, 2019 - Dec 14, 2019LecturePericles Prezas (P)E-mail
-
- - - - +
Discrete Structures - CS 201 - 2
Associated Term:Spring 2019
+
+ + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + -
Data Structures - CS 304 - 2
Associated Term:Fall 2019
CRN:24775CRN:10337
Status:**Web Registered** on Jan 04, 2019Status:**Web Registered** on Apr 25, 2019
Assigned Instructor: -Cristina A. HaidauE-mail -Assigned Instructor: +Xiwei WangE-mail +
Grade Mode:StandardGrade Mode:Standard
Credits: 3.000Credits: 3.000
Level:UndergraduateLevel:Undergraduate
Campus:Main CampusCampus:Main Campus
- - - - - - - - - +
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
+ + + + + + + + + - - - - - - - + + + + + + + -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class4:15 pm - 6:55 pmMLech Walesa Hall 3046Jan 07, 2019 - May 07, 2019LectureCristina A Haidau (P)E-mailClass5:40 pm - 6:55 pmMWLech Walesa Hall 3046Aug 26, 2019 - Dec 14, 2019LectureXiwei Wang (P)E-mail
-
- - - - +
Introduction To Environmental Science - ENVI 101 - 2
Associated Term:Spring 2019
+
+ + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + -
Applied Music: Tuba - MUS 151K - 1
Associated Term:Fall 2019
CRN:28223CRN:11522
Status:**Web Registered** on Jan 04, 2019Status:**Web Registered** on Aug 25, 2019
Assigned Instructor: -Pamela GeddesE-mail -Assigned Instructor: +William R. RussellE-mail +
Grade Mode:StandardGrade Mode:Standard
Credits: 3.000Credits: 1.000
Level:UndergraduateLevel:Undergraduate
Campus:Main CampusCampus:Main Campus
- - - - - - - - - +
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
+ + + + + + + + + - - - - - - - + + + + + + + - - - - - - - - +
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class2:20 pm - 3:35 pmMBernard J Brommel Hall 135Jan 07, 2019 - May 07, 2019LecturePamela Geddes (P)E-mailClassTBA TBAAug 26, 2019 - Dec 14, 2019LectureWilliam R Russell (P)E-mail
Class2:20 pm - 4:25 pmWBernard J Brommel Hall 135Jan 07, 2019 - May 07, 2019LabPamela Geddes (P)E-mail
+
+ + + + -
Band - MUS 231 - 1
Associated Term:Fall 2019
-
- - - + + - - + + - - + + - - + + - - + + - - + + - - + + + +
Music Theory II - MUS 122 - 1
Associated Term:Spring 2019CRN:13387
CRN:25262Status:**Web Registered** on Aug 25, 2019
Status:**Web Registered** on Jan 04, 2019Assigned Instructor: +Travis M. HeathE-mail +
Assigned Instructor: -Jeffrey F. KowalkowskiE-mail -Grade Mode:Standard
Grade Mode:StandardCredits: 1.000
Credits: 3.000Level:Undergraduate
Level:UndergraduateCampus:Main Campus
+ + + + + + + + + - - + + + + + + + + +
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Campus:Main CampusClass7:05 pm - 9:45 pmTFine Arts Center 144Aug 26, 2019 - Dec 14, 2019LectureTravis M Heath (P)E-mail
+
+ + + + -
Instrumental Ensemble: Brass - MUS 234A - 1
Associated Term:Fall 2019
- - - - - - - - + + - - - - - - - + + -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructorsCRN:14884
Class9:25 am - 10:40 amTRFine Arts Center 145Jan 07, 2019 - May 07, 2019LectureJeffrey F Kowalkowski (P)E-mailStatus:**Web Registered** on Aug 25, 2019
-
- - - + + - - + + - - + + - - + + - - + + + +
Applied Music: Tuba - MUS 151K - 1
Associated Term:Spring 2019Assigned Instructor: +Anna F. MayneE-mail +
CRN:27420Grade Mode:Standard
Status:**Web Registered** on Jan 06, 2019Credits: 1.000
Assigned Instructor: -William R. RussellE-mail -Level:Undergraduate
Grade Mode:StandardCampus:Main Campus
+ + + + + + + + + - - + + + + + + + + +
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Credits: 1.000Class10:50 am - 12:05 pmTRFine Arts Center 144Aug 26, 2019 - Dec 14, 2019LectureAnna F Mayne (P)E-mail
+
+ + + + - - + + - - + + -
Instrumental Ensemble:Jazz Band - MUS 235A - 1
Associated Term:Fall 2019
Level:UndergraduateCRN:11563
Campus:Main CampusStatus:**Web Registered** on Aug 25, 2019
- - - - - - - - + + - - - - - - - + + -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructorsAssigned Instructor: +Steven T. DuncanE-mail +
ClassTBA TBAJan 07, 2019 - May 07, 2019LectureWilliam R Russell (P)E-mailGrade Mode:Standard
-
- - - + + - - + + - - + + + +
Band - MUS 231 - 1
Associated Term:Spring 2019Credits: 1.000
CRN:25277Level:Undergraduate
Status:**Web Registered** on Jan 04, 2019Campus:Main Campus
+ + + + + + + + + - - + + + + + + + + +
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Assigned Instructor: -Travis M. HeathE-mail -Class1:40 pm - 2:55 pmTRFine Arts Center 144Aug 26, 2019 - Dec 14, 2019LectureSteven T Duncan (P)E-mail
+
+ + + + - - + + - - + + - - + + - - + + -
Music After Beethoven - MUS 345 - 1
Associated Term:Fall 2019
Grade Mode:StandardCRN:14890
Credits: 1.000Status:**Web Registered** on Apr 25, 2019
Level:UndergraduateAssigned Instructor: +Peter M. ChangE-mail +
Campus:Main CampusGrade Mode:Standard
- - - - - - - - + + - - - - - - - + + -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructorsCredits: 3.000
Class7:05 pm - 9:45 pmTRFine Arts Center 144Jan 07, 2019 - May 07, 2019LectureTravis M Heath (P)E-mailLevel:Undergraduate
-
- - - + + + +
Instrumental Ensemble:Jazz Band - MUS 235A - 2
Associated Term:Spring 2019Campus:Main Campus
+ + + + + + + + + - - + + + + + + + + +
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
CRN:25287Class11:30 am - 12:20 pmMWFFine Arts Center 145Aug 26, 2019 - Dec 14, 2019LecturePeter M Chang (P)E-mail
+
+ + + + - - + + - - + + - - + + - - + + - - + + - - + + -
The Universe:Past, Present And Future - PHYS 103 - 3
Associated Term:Fall 2019
Status:**Web Registered** on Jan 04, 2019CRN:11008
Assigned Instructor: -Mayo TianaE-mail -Status:**Web Registered** on Apr 25, 2019
Grade Mode:StandardAssigned Instructor: +Orin M. HarrisE-mail +
Credits: 1.000Grade Mode:Standard
Level:UndergraduateCredits: 3.000
Campus:Main CampusLevel:Undergraduate
- - - - - - - - + + + +
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructorsCampus:Main Campus
+ + + + + + + + + - - - - - - - + + + + + + + -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class1:40 pm - 2:55 pmTRFine Arts Center 144Jan 07, 2019 - May 07, 2019LectureMayo Tiana (P)E-mailClass9:25 am - 10:40 amTRBernard J Brommel Hall 101Aug 26, 2019 - Dec 14, 2019LectureOrin M Harris (P)E-mail
-
-Return to Previous +
+
+Return to Previous -
Transparent Image
-Skip to top of page -
+
Transparent Image
+Skip to top of page +
-
+
- +

-Skip Student Detail Schedule Links -

[ Show Registration History - | Add or Drop Classes - | Look Up Classes +Skip Student Detail Schedule Links +

[ Show Registration History + | Add or Drop Classes + | Look Up Classes ] - - + + -

+

-
+
-
+
-
+
-Release: 8.7.1 -
+Release: 8.7.1 +
-
-
-
-
-
-
-
+ +
+
+
+
+
+
- - + + + \ No newline at end of file diff --git a/test.py b/test.py index 9037e51..5111588 100644 --- a/test.py +++ b/test.py @@ -1,27 +1,31 @@ -from body_create import rrule_former,create_body +from body_create import rrule_former, create_body +import datetime + + +def json_dump(*args): + pass + + def test_rrule(): - #test + # test now = datetime.datetime.now() from munch import Munch + test_obj = Munch( - days=[1,3,5], - time_range=[ - now.time(), - (now+datetime.timedelta(seconds=50*60)).time() - ], - date_range=[ - now.date(), - (now+datetime.timedelta(days=20)).date() - ], - ) + days=[1, 3, 5], + time_range=[now.time(), (now + datetime.timedelta(seconds=50 * 60)).time()], + date_range=[now.date(), (now + datetime.timedelta(days=20)).date()], + ) test_result = rrule_former(test_obj) return locals() + def testclass_obj2body(): - with open('classes.pkl','rb') as file: + with open("classes.pkl", "rb") as file: classes = pickle.load(file) - test_result = list(filter(bool,map(create_body,classes))) + test_result = list(filter(bool, map(create_body, classes))) return test_result + if __name__ == "__main__": - json_dump(testclass_obj2body()) \ No newline at end of file + json_dump(testclass_obj2body())