Add some output
This commit is contained in:
parent
c593ab3b7b
commit
c47ceecb25
1 changed files with 6 additions and 1 deletions
|
@ -400,10 +400,15 @@ Usage: python3 pull_context.py <access_token> <server> <reply_interval_in_hours>
|
||||||
ACCESS_TOKEN = sys.argv[1]
|
ACCESS_TOKEN = sys.argv[1]
|
||||||
SERVER = sys.argv[2]
|
SERVER = sys.argv[2]
|
||||||
REPLY_INTERVAL_IN_HOURS = int(sys.argv[3])
|
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"
|
SEEN_URLS_FILE = "artifacts/seen_urls"
|
||||||
REPLIED_TOOT_SERVER_IDS_FILE = "artifacts/replied_toot_server_ids"
|
REPLIED_TOOT_SERVER_IDS_FILE = "artifacts/replied_toot_server_ids"
|
||||||
|
|
||||||
MAX_HOME_TIMELINE_LENGTH = int(sys.argv[4])
|
|
||||||
|
|
||||||
SEEN_URLS = OrderedSet([])
|
SEEN_URLS = OrderedSet([])
|
||||||
if os.path.exists(SEEN_URLS_FILE):
|
if os.path.exists(SEEN_URLS_FILE):
|
||||||
|
|
Loading…
Reference in a new issue