About variables
spouyllau opened this issue · comments
It's not clear for me, where paste :
TWITTER_CONSUMER_KEY="[your consumer key]"
TWITTER_CONSUMER_SECRET="[your consumer secret]"
TWITTER_ACCESS_TOKEN="[your access token]"
TWITTER_ACCESS_TOKEN_SECRET="[your access token secret]"
Best,
S.
I too am having the same issue. Bit of a newb using Python so I'm not sure how one sets the os.environ variables.
For example, when I replace 'TWITTER_CONSUMER_KEY' in line 61 (consumer_key=os.environ['TWITTER_CONSUMER_KEY'] with my API key, the error message printed is No consumer key/secret and/or access token/secret set.
Thanks in advance for your help and for creating this tool!
You need set these four variables as environment variables.
Assuming you are using Bash as your default shell, you need to use the export
command to export these variables to your current environment:
export TWITTER_CONSUMER_KEY="foo"
export TWITTER_CONSUMER_SECRET="bar"
export TWITTER_ACCESS_TOKEN="baz"
export TWITTER_ACCESS_TOKEN_SECRET="foobar"
Then you could quickly verify that these environment variables are set by using env
and grep
:
$ env | grep TWITTER
TWITTER_CONSUMER_KEY=foo
TWITTER_CONSUMER_SECRET=bar
TWITTER_ACCESS_TOKEN=baz
TWITTER_ACCESS_TOKEN_SECRET=foobar
This is not clear from the README, I'll fix that.
Let me know if this works (or not).
Giving this a try now. Thank you for your prompt response! I'll be in touch. 😄
Good news everyone! That export command did the trick! Everything is running as it should! Thank you so much for the clarification!
Also, should mention that I used Git Bash for Windows to do everything as previously instructed.
Cool!
I have updated the README in #21.