mirror of
https://github.com/thewesker/allanxaesthetic_ebooks.git
synced 2025-12-21 12:51:12 -05:00
added support for testing from static file
This commit is contained in:
@@ -39,6 +39,12 @@ if __name__=="__main__":
|
|||||||
guess = 0
|
guess = 0
|
||||||
|
|
||||||
if guess == 0:
|
if guess == 0:
|
||||||
|
if DEBUG==True:
|
||||||
|
file = TEST_SOURCE
|
||||||
|
string_list = open(file).readlines()
|
||||||
|
for item in string_list:
|
||||||
|
source_tweets = item.split(",")
|
||||||
|
else:
|
||||||
user=SOURCE_ACCOUNT
|
user=SOURCE_ACCOUNT
|
||||||
source_tweets = []
|
source_tweets = []
|
||||||
api=connect()
|
api=connect()
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ SOURCE_ACCOUNT = "" #The Twitter handle of the account that you'll generate twee
|
|||||||
ODDS = 8 #How often do you want this to run? 1/8 times?
|
ODDS = 8 #How often do you want this to run? 1/8 times?
|
||||||
ORDER = 2 #how closely do you want this to hew to sensical? 1 is low and 3 is high.
|
ORDER = 2 #how closely do you want this to hew to sensical? 1 is low and 3 is high.
|
||||||
DEBUG = True #Set this to False to start Tweeting live
|
DEBUG = True #Set this to False to start Tweeting live
|
||||||
|
TEST_SOURCE = "" #The name of a text file of a string-ified list for testing. To avoid unnecessarily hitting Twitter API.
|
||||||
Reference in New Issue
Block a user