def get_data(date_range: DateGen, places: dict): reader = Reader() for date in date_range: for country, cities in places.items(): for city in cities: reader.get_webpage(date, country, city) reader.append_file("warsaw.csv")