aboutsummaryrefslogtreecommitdiff
path: root/config.py
blob: ebcd20782cc573407453ad7ed30502b410badd24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# FOOLPROOF: MODIFY THIS CONFIG AND
# DELETE THE FOLLOWING TWO LINES
print("You are not running a script from internet without inspecting, are you?")
exit()

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():
	UNAME = input("[input] username or email: ")
	PW = input("[input] password (not concealed): ")
	return (UNAME, PW)