Update log message so that the date gets displayed in a human-readable form

This commit is contained in:
moshferatu 2024-07-03 20:00:23 -07:00
parent ca32f51e1a
commit 061172e1be

View File

@ -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)