-
Notifications
You must be signed in to change notification settings - Fork 0
/
parameters.py
60 lines (46 loc) · 1.48 KB
/
parameters.py
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env python
from resources import fun_defs
import datetime
########################################
## BEARER TOKENS: USER INPUT REQUIRED ##
########################################
# For Twitter access authentication.
# 1. Add your bearer token(s) here:
token0 = ''
token1 = ''
token2 = ''
token3 = ''
# 2. Add the bearer token(s) from above you want to use now to tokenList:
# tokenList = [token0, token1, token2, token3]
my_tokenList = [token1]
#####################################
## PARAMETERS: USER INPUT REQUIRED ##
#####################################
# WHAT TO PULL
my_getLikers = True
my_getRetweeters = True
my_keyWord = "#dkpol -is:retweet"
# WHEN TO PULL
my_startTime = datetime.datetime(2022, 5, 25, 10, 0)
my_observationTime = datetime.timedelta(days = 0, hours = 4, minutes = 0)
my_tweetTrackTime = datetime.timedelta(days = 0, hours = 1, minutes = 1)
# HOW AGGRESIVELY TO PULL
my_alarmLevel = 1
my_getLikersTop = 1
my_getRetweetersTop = 1
# Remember limits: my_getLikersTop <= 75*(my_sleepTime/(15*60))*len(tokenList)
my_sleepTime = 30
# FINAL HARVESTS
my_likersFinalHarvest = True
my_retweetersFinalHarvest = True
my_likersAtLeast = 2
my_retweetersAtLeast = 2
# SAVE DELTAS LOG?
my_saveLogs = True
############################################
## NO USER INPUT REQUIRED BELOW: LEAVE BE ##
############################################
# This defines a list of headers. Leave be.
my_headersList = []
for i in my_tokenList:
my_headersList.append(fun_defs.create_headers(i))