Redpandaboss09 / schedule-scraper

An executable to automatically create a class schedule from your classes
0 stars 0 forks source link

Index out of range while scraping class numbers #1

Closed Wolftr closed 1 year ago

Wolftr commented 1 year ago

Running the executable results in this error

Navigated to login page...

LOGGED IN!

Finalizing values...
Scraping course names... Scraping instructor names...
Scraping class numbers...
Traceback (most recent call last):
    File "main.py", line 5, in <module>
        pdf_creator.create_schedule(data_cleaner.fix_data(scraper.caller()))
    File "scraper.py", line 169, in caller
        needed_values login(page)
    File "scraper.py", line 26, in login
        return final_joining(page)
    File "scraper.py", line 111, in final_joining
        joined = join_elements (page, course_names (page)[0], get_instructor_names(page), get_class_number(page))
    File "scraper.py", line 71, in join_elements
        joined_elements [key] [course_names[key], instructor_names[int(key[4:])], class_numbers[int(key[4:])]] 
IndexError: list index out of range
[19176] Failed to execute script 'main' due to unhandled exception!
Redpandaboss09 commented 1 year ago

How many classes do you have and what are they?

Wolftr commented 1 year ago

8 Classes. In order: Calculus Computer Science A Computer Aided Design and 3D Printing English Ethics Computer Science Principles Introduction to Cybersecurity

Redpandaboss09 commented 1 year ago

I'll try a fix this weekend then

Redpandaboss09 commented 1 year ago

Try the new release, report on issues if another error