Flightplan: How to search a year of award inventory [no longer maintained]
#34
Original Poster
Join Date: Jan 2010
Posts: 189
Congrats!
Yes, put "-q 2" (or whatever number you want) on the command line when you run. There's a neat trick actually, if you run searches for quantity 1 first, then run "flightplan parse", and run for "-q 2" it will skip searching dates for which there wasn't even one award fare available (since if 1 was unavailable, 2 won't be available either). This can make the "-q 2" search run a lot faster.
#35
Original Poster
Join Date: Jan 2010
Posts: 189
This is great! Having created award.flights I was wondering if you've run into issues with sites that use js frameworks that have a shadow DOM (angular 2+, React) and events not firing properly or does Puppeteer+Headless Chrome negate that issue? QFs & ACs pages in particular are a pain.
I haven't done Chrome extension development myself, but I'm actually surprised you run into virtual DOM issues with award.flights, since it's running inside Chrome I'd imagine you see the exact same DOM that Puppeteer sees. I might try QF / AC next, just to see if they're doing anything drastically different.
#36
Join Date: Mar 2007
Posts: 620
Thanks blahter, the work you've done with award.flights is awesome ^ With Puppeteer, you basically just see the virtual DOM in real-time as it exists inside Chrome. The biggest issue with the SPA (single-page app's) like all the airline websites, is it's really hard to know when they're done loading (or if they've loaded at all, when you hit a Submit button and get a modal pop-up instead). I do a lot of visual checks (like is there still a spinner, or do I see the type of data I expect) to know when it's done.
I haven't done Chrome extension development myself, but I'm actually surprised you run into virtual DOM issues with award.flights, since it's running inside Chrome I'd imagine you see the exact same DOM that Puppeteer sees. I might try QF / AC next, just to see if they're doing anything drastically different.
I haven't done Chrome extension development myself, but I'm actually surprised you run into virtual DOM issues with award.flights, since it's running inside Chrome I'd imagine you see the exact same DOM that Puppeteer sees. I might try QF / AC next, just to see if they're doing anything drastically different.
- The javascript you can inject is run in a separate context than the page's own js context
- Changing the value on a textbox via jquery/pure js for example doesn't trigger the React onChange event which in turn won't call the function to set the value of the departure airport(QF). Chrome headless may actually simulate a user performing the action so you may not run into this issue.
#38
Join Date: Jul 2018
Posts: 6
Excellent tools!! I am able to run search however not able to launch the Web UI.
After I input the command "flightplan client", it responds that "C:\\Users\\Steven" doesn't exist.
My user account in windows is "Steven XXXX", guess it was truncated in the script? Do you know how I can fix it? Thanks!
After I input the command "flightplan client", it responds that "C:\\Users\\Steven" doesn't exist.
My user account in windows is "Steven XXXX", guess it was truncated in the script? Do you know how I can fix it? Thanks!
#39
Ambassador, Hong Kong and Macau
Join Date: May 2009
Location: HKG
Programs: Non-top tier Asia Miles member
Posts: 19,807
Excellent tools!! I am able to run search however not able to launch the Web UI.
After I input the command "flightplan client", it responds that "C:\\Users\\Steven" doesn't exist.
My user account in windows is "Steven XXXX", guess it was truncated in the script? Do you know how I can fix it? Thanks!
After I input the command "flightplan client", it responds that "C:\\Users\\Steven" doesn't exist.
My user account in windows is "Steven XXXX", guess it was truncated in the script? Do you know how I can fix it? Thanks!
Edit 12/7: sorry both flightplan server and flightplan client need to be run, in two separate powershells.
Last edited by percysmith; Jul 11, 2018 at 10:35 am
#40
Join Date: Jul 2018
Posts: 6
#41
Ambassador, Hong Kong and Macau
Join Date: May 2009
Location: HKG
Programs: Non-top tier Asia Miles member
Posts: 19,807
#44
Original Poster
Join Date: Jan 2010
Posts: 189
The flightplan data directory is just whatever directory you happen to be in when you run flightplan. When running the search command, it will create "data" and "db" directories if they don't already exist. For every other command (parse, client, server, etc...), you must run from this same directory, or the command won't find the data it needs
.
I don't, feedback is much appreciated though! I've finished my own award trip planning for this year, so I'm not really sure what areas of the tool need further improvement.
Last edited by jd20; Jul 10, 2018 at 11:34 pm
#45
Join Date: Oct 2013
Posts: 289
Is it possible to search QF/BA site, so we can deep analyst how much seats did CX released for partners