Home · Maps · About

Home > SubChat
 

[ Read Responses | Post a New Response | Return to the Index ]
[ First in Thread | Next in Thread ]

 

view flat

Re: Morning AWOL Report for 2 Jan 2018

Posted by Stephen Bauman on Fri Jan 5 19:34:28 2018, in response to Re: Morning AWOL Report for 2 Jan 2018, posted by BusRider on Fri Jan 5 18:07:42 2018.

Here's a link to the MTA page that tells how to access the feed.

You enter the key id that the MTA emailed you in place of the part in the url. N.B. the <> brackets are replaced.

You will need a program to download the data - your www client probably won't work or try to display a binary file. You need something that will act like a screen scraper. One possibility is wget, which is available for Linux, and I hear also for windows. Another possibility is to use an equivalent within a programming language library and write a program. The cloud that I was using did not allow executing shell commands like wget, there is an equivalent library for python. So, I had to refresh my python skills.

The downloaded file is an unreadable serialized binary. You will need to download protoc, which google provides. I decided to forego the available protobuf files and do a raw decode. You will now have a text file that you will have to read and work with.

Responses

Post a New Response

Your Handle:

Your Password:

E-Mail Address:

Subject:

Message:



Before posting.. think twice!


[ Return to the Message Index ]