diff --git a/news/scrape_news.py b/news/scrape_news.py index e3f9f16..27528a3 100644 --- a/news/scrape_news.py +++ b/news/scrape_news.py @@ -60,7 +60,7 @@ def scrape_news(date: datetime) -> pd.DataFrame: def scrape_news_in_range(start_date: datetime, end_date: datetime) -> Generator[pd.DataFrame, None, None]: current_date = start_date while current_date <= end_date: - print(f"Scraping data for {current_date.date}") + print(f"Scraping data for {current_date}") news_data = scrape_news(current_date) yield news_data current_date += timedelta(days=1)