Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Using script data #13

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

kftang
Copy link

@kftang kftang commented Sep 25, 2024

Thanks for your work in reverse engineering the tfs protobuf!

I wanted to have access to flight numbers but noticed the original parser wasn't able to handle this as the information doesn't exist until you open the detailed view for each flight.

I was looking at the available data in the response and noticed that there is some static JS data that contains all the flight data. This is a little tricky though as the schema for this data is in some proprietary format (I'm guessing protobuf?) and I couldn't find an easy way to decode it.

The data is a lot of nested lists, with some value types in between. It looks like the data is well formed, so we should be able to reverse engineer the schema. I'm using the data_discovery notebook to do this.

TODO:

  • Fix parser
  • Do more reverse engineering and figure out the best way to store a mapping
  • Come up with method to use the data gathered from reverse engineering
  • Add retrying the request when using js_data parser
  • ??

BTW I noticed the use of the old type annotations format (typing.List rather than list), is there any requirement to support an older python version? If not I'll change these to the new generic aliases.

@AWeirdDev
Copy link
Owner

Woah, that's a lot of changes. I'll probably take a look on Saturday.

Thanks,
AWeirdDev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants