Beispiel #1
0
def fetch_last_n_days(n: int) -> Tuple[Questions, Answers]:
    end = dt.datetime.now()
    start = end - dt.timedelta(seconds=n * 24 * 60 * 60)
    api_client = APIClient()
    questions = api_client.questions(start=start, end=end)
    answers = api_client.answers(questions)
    return questions, answers