bvg-grabber
bvg-grabber copied to clipboard
Parsing error for SBahn
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.
The solution could something with www.crummy.com/software/BeautifulSoup/bs4/doc/#strings-and-stripped-strings
This would replace "S7\n\n(Gl. 6) by "S7(Gl. 6) which isn't helpful either.
The line information is in the strong tag of the td tag, so there it can be scrapped without the platform information.