bvg-grabber icon indicating copy to clipboard operation
bvg-grabber copied to clipboard

Parsing error for SBahn

Open ces92 opened this issue 11 years ago • 3 comments

example: {"start": "S+U Zoologischer Garten Bhf (Berlin)", "line": "S7\n\n(Gl. 6)", "end": "S Westkreuz (Berlin)", "remaining": 780}

I think this problem is also with Tram.

ces92 avatar Feb 12 '15 00:02 ces92

The solution could something with www.crummy.com/software/BeautifulSoup/bs4/doc/#strings-and-stripped-strings

ces92 avatar Feb 13 '15 23:02 ces92

This would replace "S7\n\n(Gl. 6) by "S7(Gl. 6) which isn't helpful either.

MarkusH avatar Feb 14 '15 22:02 MarkusH

The line information is in the strong tag of the td tag, so there it can be scrapped without the platform information.

ces92 avatar Feb 15 '15 23:02 ces92