<jupyter_start><jupyter_text>Banner web access helper<jupyter_code>from  selenium import webdriver
from selenium.common.exceptions import StaleElementReferenceException
import time

import os 
driver_path = os.getcwd() + "/chromedriver"
print(driver_path)
browser = webdriver.Chrome(executable_path=driver_path)

username = input("Please insert your username")

password = input("Please input your password /n Dont worry we dont save your password :)")


browser.get("https://bannerweb.sabanciuniv.edu/")

enterButton = browser.find_element_by_xpath("html/body/h2/a")

currentUrl = browser.current_url

print(type(currentUrl))
print(currentUrl)


while currentUrl != "https://suis.sabanciuniv.edu/prod/twbkwbis.P_SabanciLogin":
    browser.get("https://bannerweb.sabanciuniv.edu/")

    enterButton.click()
    
    currentUrl = browser.current_url


browser.get("https://suis.sabanciuniv.edu/prod/twbkwbis.P_SabanciLogin")

inputID = browser.find_element_by_id("UserID")


inputID.send_keys(username)

inputPassword = browser.find_element_by_name("PIN")

inputPassword.send_keys(password)

submit = browser.find_element_by_css_selector("input[value='Login'][type='submit']")

submit.click()

stuButton = browser.find_element_by_link_text("Student")

stuButton.click()

regButton = browser.find_element_by_link_text("Registration")

regButton.click()

addClassButton = browser.find_element_by_link_text("Look-up Classes to Add")

addClassButton.click()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11808367071524967, 'fraction_numerical': 0.0006747638326585695, 'mean_word_length': 6.8465608465608465, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '451070', 'license': 'MIT', 'n_tokens_mistral': 514, 'n_tokens_neox': 504, 'n_words': 75, 'path': 'Example/JupyterNotebook/BannerWeb Accesor.ipynb', 'repo_name': 'CankutCoskun/bannerweb-login', 'size': '1482'}