if not url:
# FIXME prevent from calling this method with None
return []
-
- bs = BeautifulSoup(urlopen(url))
+
+ # open url for 90 min timeslot / get departure for next 90 min
+ bs = BeautifulSoup(urlopen(url + "&departureSizeTimeSlot=90"))
result_lines = bs.findAll('table')[-1].findAll('tr')
dep = []
# TODO return departures
raise NotImplementedError()
else:
- raise StationNotFoundError('There is no stationname called "%s" at route of line "%s"' % (stationname, self.name))
\ No newline at end of file
+ raise StationNotFoundError('There is no stationname called "%s" at route of line "%s"' % (stationname, self.name))