I guess KVB changed their website, because the get_departures function is not working anymore. I changed the following two lines and got it to work.
tables = soup.find_all("table", class_="qr_table")
for row in tables[1].find_all("tr"):
tables = soup.find_all("table", class_="display")
for row in tables[0].find_all("tr"):
I guess KVB changed their website, because the
get_departuresfunction is not working anymore. I changed the following two lines and got it to work.tables = soup.find_all("table", class_="qr_table")for row in tables[1].find_all("tr"):tables = soup.find_all("table", class_="display")for row in tables[0].find_all("tr"):