diff options
author | Andrew Karpow <andy@ndyk.de> | 2014-09-18 16:12:21 +0200 |
---|---|---|
committer | Andrew Karpow <andy@ndyk.de> | 2014-09-18 16:12:21 +0200 |
commit | be42b26c469603b9f3de4aa558f5aed2df30c87e (patch) | |
tree | c7ae31668572465696d56a1ce2e730fb61db5ccc /bvggrabber/api | |
parent | 4c6b7bb0f17fca0700550dc88042ac1cb1eb28df (diff) | |
download | bvg-grabber-be42b26c469603b9f3de4aa558f5aed2df30c87e.tar.gz bvg-grabber-be42b26c469603b9f3de4aa558f5aed2df30c87e.tar.bz2 bvg-grabber-be42b26c469603b9f3de4aa558f5aed2df30c87e.zip |
fixed bvg url/post-params for actual departures
Diffstat (limited to 'bvggrabber/api')
-rw-r--r-- | bvggrabber/api/actualdeparture.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bvggrabber/api/actualdeparture.py b/bvggrabber/api/actualdeparture.py index 233dfb5..54eb6a7 100644 --- a/bvggrabber/api/actualdeparture.py +++ b/bvggrabber/api/actualdeparture.py @@ -6,7 +6,7 @@ from bs4 import BeautifulSoup from bvggrabber.api import QueryApi, Departure, Response -ACTUAL_API_ENDPOINT = 'http://mobil.bvg.de/IstAbfahrtzeiten/index/mobil' +ACTUAL_API_ENDPOINT = 'http://mobil.bvg.de/Fahrinfo/bin/stboard.bin/dox?ld=0.1&rt=0&' class ActualDepartureQueryApi(QueryApi): @@ -22,7 +22,7 @@ class ActualDepartureQueryApi(QueryApi): self.station = station def call(self): - params = {'input': self.station_enc} + params = {'input': self.station_enc, 'start': 'suchen'} response = requests.get(ACTUAL_API_ENDPOINT, params=params) if response.ok: soup = BeautifulSoup(response.text) |