gabriel-flynn / Cheap-Flight-Finder

0 stars 0 forks source link

Add Southwest Airlines #3

Open gabriel-flynn opened 2 years ago

gabriel-flynn commented 2 years ago

Southwest does work but there is no way to easily reverse engineer the headers as far as I can tell (no endpoint to generate a token like with spirit - it's generated client side and even when attempting to deminify/deobfuscate the javascript it isn't clear how the headers are generated). Using selenium with the chromedriver does work but after 5-10 requests or so it seems like it starts looking for mouse movement/whatever anti-bot mechanism they have starts to block requests. Getting the headers manually in the same browser will work even when the tab driven by selenium is getting 429 errors. Going to put this one on hold for now

8a8al00ey commented 2 years ago

What about trying to do something similar to https://github.com/nicolaskenner/southwest-headers