resolved. Subscribed to a stream
Using the python code for real time stream,wow I run and all I see is this…not very interesting. How can I actually see a stream?
Streaming ready, can start subscribing
So…whats the deal? Below is the code I am referring.
from datasift import Client
ds = Client(username, api_key)
print( 'Deleted interaction %s ’ % interaction)
print( ‘Streaming ready, can start subscribing’)
csdl = 'interaction.content contains “music”'
stream = ds.compile(csdl)[‘hash’]
@ds.subscribe(stream) def subscribe_to_hash(msg): print( msg)
def on_close(wasClean, code, reason):
print( ‘Streaming connection closed’)
print( ‘DS Message %s’ % msg)
#must start stream subscriber