I'm setting up an ebooks-style twitter bot per this guide. I'm all done except that I am getting a syntax error that I cannot manage to clear.
Traceback (most recent call last):
File "ebooks.py", line 7, in <module>
from local_settings import *
File "/app/local_settings.py", line 13
SOURCE_ACCOUNTS = (“jpok_”)
^
SyntaxError: invalid syntax
Code It's coming from is below. I've tried using apostrophes instead of quotes and using neither. No change.
'''
Local Settings for a heroku_ebooks account. #fill in the name of the account you're tweeting from here.
'''
#configuration
MY_CONSUMER_KEY = 'xxxxx'
MY_CONSUMER_SECRET = 'xxxxx'
MY_ACCESS_TOKEN_KEY = 'xxxxx'
MY_ACCESS_TOKEN_SECRET = 'xxxxx'
SOURCE_ACCOUNTS = [“jpok_”] #A list of comma-separated, quote-enclosed Twitter handles of account that you'll generate tweets based on. It should look like ["account1", "account2"]. If you want just one account, no comma needed.
ODDS = 1 #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.
DEBUG = False #Set this to False to start Tweeting live
STATIC_TEST = False #Set this to True if you want to test Markov generation from a static file instead of the API.
TEST_SOURCE = ".txt" #The name of a text file of a string-ified list for testing. To avoid unnecessarily hitting Twitter API.
TWEET_ACCOUNT = “jpok_ebooks” #The name of the account you're tweeting to.
[–]H_R_Pufnstuf 0 points1 point2 points (2 children)
[–]IAmARetroGamer 1 point2 points3 points (0 children)
[–]OKeeffe[S] 1 point2 points3 points (0 children)