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)