'Can not enter course code into timetable, timetable is returning empty
I am creating a new system for a college timetable, I am looking for free slots in a timetable(where the student has no lectures). I need to enter the course code because at the moment it is opening up a blank timetable, So I need to be able to enter a course code in (e.g CASE2)
Here is my code
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
s = Service(ChromeDriverManager().install())
driver = webdriver.Chrome(service=s)
driver.maximize_window() #opens up website, probably not needed.
driver.implicitly_wait(30)
driver.get('https://opentimetable.dcu.ie/')
df2=pd.read_html(driver.find_element_by_id("week-pdf-content").get_attribute('outerHTML'))[0]
# currently not searching for anything.
print(df2)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
