diff --git a/bot.py b/bot.py deleted file mode 100644 index 2e84b0f..0000000 --- a/bot.py +++ /dev/null @@ -1,46 +0,0 @@ -from pyppeteer import launch -import asyncio -import time -import scraper -set_semester = "document.getElementsByName('term_in')[0].selectedIndex = 0" -xpaths = { - 'tab':".//a[text()='Current Student']", - 'schedule':".//a[text()='Student Detail Schedule']", - 'submit':"//input[@value='Submit']", - 'frame':"//frame[@src='/cp/ip/login?sys=sctssb&url=https://ssb.neiu.edu/mercury_neiuprod/bwskfshd.P_CrseSchdDetl']" - } -async def xpath_single_element(xpath,page): - await page.waitForXPath(xpath) - elements = await page.xpath(xpath) - return elements[0] -async def main_loop(login): - browser = await launch(headless = False) - page_list = await browser.pages() - page = page_list[0] - r = await page.goto('https://neiuport.neiu.edu/cp/home/displaylogin') - await page.evaluate(login) - await page.waitFor('#tab') - student_tab = await xpath_single_element(xpaths['tab'],page) - await student_tab.click() - await page.waitForXPath(xpaths['schedule']) - schedule = await xpath_single_element(xpaths['schedule'],page) - await schedule.click() - page.waitForXPath(xpaths['frame']) - await asyncio.sleep(3) - frame = page.frames[-1] - submit= await xpath_single_element(xpaths['submit'],frame) - await submit.click() - await asyncio.sleep(1) - content = await page.frames[-1].content() - await browser.close() - return scraper.get_classes(content) - -def get_classes(user,password): - login = """document.getElementById('user').value='{}' - document.getElementById('pass').value='{}' - login()""".format(user,password) - loop = asyncio.get_event_loop() - r = loop.run_until_complete - return r(main_loop(login)) -if __name__ == "__main__": - cl = get_classes('rlroberts5','YxmZZ905p0w6') diff --git a/gcalendar.py b/gcalendar.py deleted file mode 100644 index 162324b..0000000 --- a/gcalendar.py +++ /dev/null @@ -1,5 +0,0 @@ -import os -import sys -parent = os.path.dirname(__file__) -sys.path.insert(0,os.path.join(parent,'google_api_wrapper')) -from gapi.calendar_api import * \ No newline at end of file diff --git a/schedule.html b/schedule.html deleted file mode 100644 index 9076169..0000000 --- a/schedule.html +++ /dev/null @@ -1,645 +0,0 @@ - - - - - - -Student Detail Schedule - - - - - -
-
-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
-
-
- -
- - - - - -
-
-
-Search - - - -
-
-

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

-
-
- - - - - - - - - -
-

Student Detail Schedule

-
-  -

-

-000645225 Raphael L. Roberts
-Fall 2019
-Aug 26, 2019 03:02 am
-
-
Transparent Image
- -
-
- -
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: 16.000 -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Computer Organization - CS 301 - 2
Associated Term:Fall 2019
CRN:10335
Status:**Web Registered** on Aug 25, 2019
Assigned Instructor: -Pericles PrezasE-mail -
Grade Mode:Standard
Credits: 3.000
Level:Undergraduate
Campus:Main Campus
- - - - - - - - - - - - - - - - - - - -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class4:15 pm - 5:30 pmTRLech Walesa Hall 3046Aug 26, 2019 - Dec 14, 2019LecturePericles Prezas (P)E-mail
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Data Structures - CS 304 - 2
Associated Term:Fall 2019
CRN:10337
Status:**Web Registered** on Apr 25, 2019
Assigned Instructor: -Xiwei WangE-mail -
Grade Mode:Standard
Credits: 3.000
Level:Undergraduate
Campus:Main Campus
- - - - - - - - - - - - - - - - - - - -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class5:40 pm - 6:55 pmMWLech Walesa Hall 3046Aug 26, 2019 - Dec 14, 2019LectureXiwei Wang (P)E-mail
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Applied Music: Tuba - MUS 151K - 1
Associated Term:Fall 2019
CRN:11522
Status:**Web Registered** on Aug 25, 2019
Assigned Instructor: -William R. RussellE-mail -
Grade Mode:Standard
Credits: 1.000
Level:Undergraduate
Campus:Main Campus
- - - - - - - - - - - - - - - - - - - -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
ClassTBA TBAAug 26, 2019 - Dec 14, 2019LectureWilliam R Russell (P)E-mail
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Band - MUS 231 - 1
Associated Term:Fall 2019
CRN:13387
Status:**Web Registered** on Aug 25, 2019
Assigned Instructor: -Travis M. HeathE-mail -
Grade Mode:Standard
Credits: 1.000
Level:Undergraduate
Campus:Main Campus
- - - - - - - - - - - - - - - - - - - -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class7: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
CRN:14884
Status:**Web Registered** on Aug 25, 2019
Assigned Instructor: -Anna F. MayneE-mail -
Grade Mode:Standard
Credits: 1.000
Level:Undergraduate
Campus:Main Campus
- - - - - - - - - - - - - - - - - - - -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class10: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
CRN:11563
Status:**Web Registered** on Aug 25, 2019
Assigned Instructor: -Steven T. DuncanE-mail -
Grade Mode:Standard
Credits: 1.000
Level:Undergraduate
Campus:Main Campus
- - - - - - - - - - - - - - - - - - - -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
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
CRN:14890
Status:**Web Registered** on Apr 25, 2019
Assigned Instructor: -Peter M. ChangE-mail -
Grade Mode:Standard
Credits: 3.000
Level:Undergraduate
Campus:Main Campus
- - - - - - - - - - - - - - - - - - - -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class11: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
CRN:11008
Status:**Web Registered** on Apr 25, 2019
Assigned Instructor: -Orin M. HarrisE-mail -
Grade Mode:Standard
Credits: 3.000
Level:Undergraduate
Campus:Main Campus
- - - - - - - - - - - - - - - - - - - -
Scheduled Meeting Times
TypeTimeDaysWhereDate RangeSchedule TypeInstructors
Class9:25 am - 10:40 amTRBernard J Brommel Hall 101Aug 26, 2019 - Dec 14, 2019LectureOrin M Harris (P)E-mail
-
-Return to Previous - - -
Transparent Image
-Skip to top of page -
-
- -
-
- - -

-Skip Student Detail Schedule Links -

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

-
- -
-
- -
-
- -
-
-Release: 8.7.1 -
-
-
-
-
-
-
-
-
- - - - \ No newline at end of file