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

Can code be modified for Global Services Members? #14

Open
miguelagt opened this issue Apr 24, 2018 · 1 comment
Open

Can code be modified for Global Services Members? #14

miguelagt opened this issue Apr 24, 2018 · 1 comment

Comments

@miguelagt
Copy link

Thank you so much for writing this! I've had a great time playing around with it.

I am a UA GS. I see more upgrade availability at UAs website than using the code. I think I know why.

Let's take an example. Running the code, I can see that there is upgrade availability on UA2160 on 5/5/2018. This is a flight that departs at 5:40 pm from San Francisco and arrives at 2:06 am in EWR [screenshot (https://photos.app.goo.gl/HlrIHsm1y2dUmodG2)].

When, I go to the United website, the flight has, indeed, a green arrow [screenshot (https://photos.app.goo.gl/ADD77THCSO9DvUCN2)].

However, this is not the only flight available for an upgrade. An earlier flight (UA 213) also has availability for immediate upgrade [screenshot (https://photos.app.goo.gl/dA6oyVx1h7kFKDXU2) ].

I think the reason is the following: GS members can be upgraded if there is PN, or P availability. UA213 shows availability in both of these, while UA2160 doesn't. However, UA2160 has availability in the R, RN fares, which are typically upgradeable for Premier 1k customers.

So, I am assuming that the code is somehow pulling R and RN availability.

This is more of a feature request than a bug: would it be possible to pull the PN and P availability with the code?

@polastre
Copy link
Owner

United returns some fare class information, however I don't currently parse it. There'd be two ways to go here:

  1. Look for fare class info, and add a flag to parse it
  2. Allow you to log in when using the tool

If you want to try things out yourself, the lines you would change are here:
https://github.com/polastre/united/blob/master/united.js#L28

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

No branches or pull requests

2 participants