from bvggrabber.api.scheduleddeparture import ScheduledDepartureQueryApi, Vehicle
query = ScheduledDepartureQueryApi("S Schulzendorf (Berlin)", Vehicle.BUS | Vehicle.S, limit=100)
res = query.call()
print(res.to_json)
Results in:
soup = BeautifulSoup(response.text)
Traceback (most recent call last):
File "t.py", line 6, in
res = query.call()
File "/home/bh/devel/epaper/.venv/lib/python3.8/site-packages/bvggrabber/api/scheduleddeparture.py", line 74, in call
end=tds[2].text.strip(),
IndexError: list index out of range
Results in:
API request URL: