From 061172e1be0a4587e11b56420465062075e4d5f9 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Wed, 3 Jul 2024 20:00:23 -0700 Subject: [PATCH] Update log message so that the date gets displayed in a human-readable form --- news/scrape_news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)