mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-10-25 23:23:59 +00:00
11 lines
234 B
Python
11 lines
234 B
Python
|
|
import schedule
|
||
|
|
import time
|
||
|
|
from firecrawl_scraper import save_firecrawl_news_data
|
||
|
|
|
||
|
|
# Schedule the scraper to run every hour
|
||
|
|
schedule.every().hour.do(save_firecrawl_news_data)
|
||
|
|
|
||
|
|
while True:
|
||
|
|
schedule.run_pending()
|
||
|
|
time.sleep(1)
|