How to split up a real time stream



I am using python for HTTP multi streaming. I am having issues will parsing a streams so I can convert to json. What is the deliminator so I can split a stream and then do a valid json load? Where is it in the documentation on how to split up real time streaming?

I tried this but does not work

data_list = raw_data.replace(’\r’,’’).strip().split(’\n’)


The interaction delimited for the Streaming API is a new line: '\n'

We tend to recommend you use our official API client libraries. We do support a Python one, and it is open source, so we encourage you to submit pull requests for any improvements you wish to add!