aboutsummaryrefslogtreecommitdiff
path: root/bvggrabber/api/actualdeparture.py
diff options
context:
space:
mode:
authorGereon Dusella <git@gereondusella.de>2019-12-12 20:26:52 +0100
committerGereon Dusella <git@gereondusella.de>2019-12-12 20:26:52 +0100
commite4db44b084582236111e62d2767542d1a4dfb99d (patch)
tree689bd26b4f83940caf4036b219dddfd098d144bb /bvggrabber/api/actualdeparture.py
parent7664fb26df0c4ba0f03504b55e15022769bab861 (diff)
downloadbvg-grabber-e4db44b084582236111e62d2767542d1a4dfb99d.tar.gz
bvg-grabber-e4db44b084582236111e62d2767542d1a4dfb99d.tar.bz2
bvg-grabber-e4db44b084582236111e62d2767542d1a4dfb99d.zip
changed url protocol to HTTPS, fixed crawler
Diffstat (limited to 'bvggrabber/api/actualdeparture.py')
-rw-r--r--bvggrabber/api/actualdeparture.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bvggrabber/api/actualdeparture.py b/bvggrabber/api/actualdeparture.py
index e7c084b..7d90ca0 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/Fahrinfo/bin/stboard.bin/dox?ld=0.1&rt=0&'
+ACTUAL_API_ENDPOINT = 'https://mobil.bvg.de/Fahrinfo/bin/stboard.bin/dox?ld=0.1&rt=0&'
class ActualDepartureQueryApi(QueryApi):
@@ -43,8 +43,8 @@ class ActualDepartureQueryApi(QueryApi):
return Response(False)
else:
# The station seems to exist
- result = soup.find('div', {'id': '',
- 'class': 'ivu_result_box'})
+ result = soup.find('table', {'id': '',
+ 'class': 'ivu_table'})
if result is None:
return Response(True, self.station, [])
rows = result.find_all('tr')