Trying to use Streaming API to follow my timeline
Closed this issue · 0 comments
I've followed the information in the Readme and installed birdy but am getting what looks like a parsing issue because the error appears on my variable for my Token Secret
my file
Working example
import sys
CONSUMER_KEY = KEY_VALUE
CONSUMER_SECRET = KEY_VALUE
ACCESS_TOKEN = KEY_VALUE
ACCESS_TOKEN_SECRET = KEY_VALUE
from birdy.twitter import StreamClient
client = StreamClient(CONSUMER_KEY,
CONSUMER_SECRET,
ACCESS_TOKEN,
ACCESS_TOKEN_SECRET)
resource = client.userstream.user.get()
for data in resource.stream():
print "Raw DATA ", data
Done
This is the error I'm getting it seems that I'm missing something simple
python simple_user_streaming.py
File "simple_user_streaming.py", line 31
ACCESS_TOKEN_SECRET = KEY_VALUE
^
SyntaxError: invalid syntax