Generate Eurostar timetable URLs from station IDs
This commit is contained in:
parent
f75c1e2db3
commit
945d028c13
3 changed files with 40 additions and 24 deletions
2
app.py
2
app.py
|
|
@ -115,7 +115,7 @@ def results(slug, travel_date):
|
|||
next_date = (dt + timedelta(days=1)).isoformat()
|
||||
travel_date_display = dt.strftime('%A %-d %B %Y')
|
||||
|
||||
eurostar_url = eurostar_scraper.ROUTE_URLS[destination] + f"?date={travel_date}"
|
||||
eurostar_url = eurostar_scraper.timetable_url(destination) + f"?date={travel_date}"
|
||||
rtt_url = RTT_PADDINGTON_URL.format(date=travel_date)
|
||||
|
||||
return render_template(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue