How to collect data for streaming api using python

Navigate to and on click to the terminal icon will give you streaming api for the particle dashboard log.

I can call this api using CURL but unable to call api using python.

if anyone familier with python Please let me know, Please post example here.
else you can post example in any language, i will try to translate it.

Thanks in advance :slight_smile:

You can use somethings like this maybe -

Basically to listen to SSE events

Thank you so much.
Could you please mind to tell me how you know that this will work.
I was searching yesterday whole day but didnt able to find it and end up asking here.

But you made my day :smiley:

Once again thank you very much

Basically the data you see in the Dashboard is Server Side Events and this library is a client that allows you to listen to the stream.

That’s how i figured out this library might work based on the description.

If you use javascript, there’s a code snippet here -

Hmm got your point.
Thanks :slight_smile: