9 lines
297 B
Python
9 lines
297 B
Python
from database.news import insert
|
|
from datetime import datetime
|
|
from news import scrape_news_in_range
|
|
|
|
start_date = datetime(2023, 10, 25)
|
|
end_date = datetime(2023, 10, 25)
|
|
scrape_news_in_range(start_date, end_date)
|
|
for news_data in scrape_news_in_range(start_date, end_date):
|
|
insert(news_data) |