#TODO parse line name and direction for station site parsing
+ if not url:
+ # FIXME prevent from calling this method with None
+ return []
+
bs = BeautifulSoup(urlopen(url))
result_lines = bs.findAll('table')[-1].findAll('tr')
l = args.l.upper()
else:
l = None
- s = args.s.decode('UTF-8')
+ if args.s:
+ s = args.s.decode('UTF-8')
+ else:
+ s = ''
if l and l in lines:
stations = itip.get_stations(l)