From c47ceecb259297c4124ba90bb469adbb3cc6050f Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Mon, 6 Mar 2023 15:22:16 +0000 Subject: [PATCH] Add some output --- get_context.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/get_context.py b/get_context.py index 92966f9..b215fb4 100644 --- a/get_context.py +++ b/get_context.py @@ -400,10 +400,15 @@ Usage: python3 pull_context.py ACCESS_TOKEN = sys.argv[1] SERVER = sys.argv[2] REPLY_INTERVAL_IN_HOURS = int(sys.argv[3]) + MAX_HOME_TIMELINE_LENGTH = int(sys.argv[4]) + + print( + f"Getting last {REPLY_INTERVAL_IN_HOURS} hrs of replies, and latest {MAX_HOME_TIMELINE_LENGTH} posts in home timeline from {SERVER}" + ) + SEEN_URLS_FILE = "artifacts/seen_urls" REPLIED_TOOT_SERVER_IDS_FILE = "artifacts/replied_toot_server_ids" - MAX_HOME_TIMELINE_LENGTH = int(sys.argv[4]) SEEN_URLS = OrderedSet([]) if os.path.exists(SEEN_URLS_FILE):