diff options
| author | Tianhao Wang <tianhao.wang2@mailbox.tu-dresden.de> | 2023-10-14 00:04:45 +0200 |
|---|---|---|
| committer | Tianhao Wang <tianhao.wang2@mailbox.tu-dresden.de> | 2023-10-14 00:04:45 +0200 |
| commit | 2580e02140f112e8797807620e36712489039754 (patch) | |
| tree | 4956d918ecb3d79ff772c52576bfdee20e88a811 /config.py | |
init
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/config.py b/config.py new file mode 100644 index 0000000..b5f37cd --- /dev/null +++ b/config.py @@ -0,0 +1,32 @@ +APPNAME = 'bot_id' +BASEURL = 'https://_instance_' + +FOLLOW = "yourself" +PUBLIC_ONLY = True +NO_REBLOG = True +DATEFORMAT = "%m/%d/%Y" +OUTPUT_JSON_FILE = 'tl.json' + +# TODO add caching options + +# max number of statuses per fetch. There is no guarantee to fetch ALL from +# timeline if this number is set higher. As it also depends on the server side +# rate limit +LIMIT = 40 + +# bot account username and password +# Priority: plaintext UNAME/PW in this config > input at runtime +UNAME = "" +PW = "" + +# you don't need to modify these +CLIENTID = 'client.secret' +TOKEN = 'token.secret' + +def get_secrets_from_input(): + print("account secret not found, please manually input: ") + UNAME = input("username or email: ") + PW = input("password (not concealed): ") + return (UNAME, PW) + + |
