Hi @Mithun, hopefully one of our awesome developers out there can help you out. We provide very limited coding support since we like to focus on the data
You’re accessing the API using the debug flag which provides a serialisation of the data… but it’s intended as a one-way serialization method and should really be used for debugging only (i.e. not for consuming the data).
Note that the output of the debugging feed may also be truncated.
The supported way to use the data is provided in the GTFS-realtime standard which uses Protocol Buffers. If you drop the debug=true, the data is provided as a protocol buffer.
There are many Python libraries out that can decode protocol buffers. I haven’t used any of them… so can’t really provide suggestions. @timbennett had also put this handy guide together, which may help point you in the right direction.
Hey, just to note that I haven’t updated that notebook since it was first published, and significant sections (eg authorisation) are now out of date. You may have some success with the “Parsing the response” section related to the protobuf library, but it wouldn’t surprise me if the field hierarchy has been modified.