AkahuSync/IngestionService/ingester.py

16 lines
359 B
Python

from ..EmoneyScraper import Scraper
from ..AkahuClient import AkahuClient
from dotenv import load_dotenv
import os
load_dotenv()
TOKEN = os.getenv("AKAHU_API_TOKEN")
APP_ID = os.getenv("AKAHU_APP_ID")
if not TOKEN or not APP_ID:
print("Please set AKAHU_API_TOKEN and AKAHU_APP_ID in your environment.")
exit(1)
client = AkahuClient(TOKEN, APP_ID)