summaryrefslogtreecommitdiff
path: root/bvggrabber
diff options
context:
space:
mode:
authorAndrew Karpow <andy@ndyk.de>2014-09-18 16:12:21 +0200
committerAndrew Karpow <andy@ndyk.de>2014-09-18 16:12:21 +0200
commitbe42b26c469603b9f3de4aa558f5aed2df30c87e (patch)
treec7ae31668572465696d56a1ce2e730fb61db5ccc /bvggrabber
parent4c6b7bb0f17fca0700550dc88042ac1cb1eb28df (diff)
downloadbvg-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')
-rw-r--r--bvggrabber/api/actualdeparture.py4
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)