Update log message so that the date gets displayed in a human-readable form
This commit is contained in:
parent
ca32f51e1a
commit
061172e1be
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user