From 024555896b766d1fbec2979f449e64e1717f7315 Mon Sep 17 00:00:00 2001 From: localhorst Date: Thu, 11 Jan 2024 18:48:33 +0100 Subject: [PATCH] fix name of station --- station_scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/station_scraper.py b/station_scraper.py index f597c1f..d3dbef2 100644 --- a/station_scraper.py +++ b/station_scraper.py @@ -42,7 +42,7 @@ def scrape_station(station_id): + soup.find("span", {"itemprop": 'http://schema.org/postalCode' }).text + "_"\ + soup.find("span", {"itemprop": 'http://schema.org/addressCountry' }).text - station_metric_basename = station_metric_basename.replace(" ", "" ).replace(".", "" ).replace(",", "" ) + station_metric_basename = station_metric_basename.replace(" ", "" ).replace(".", "" ).replace(",", "").replace("-", "") station_metric_basename = unidecode.unidecode(station_metric_basename)