krisukox / google-flights-api

A Go Client Library for the Google Flights API
MIT License
43 stars 14 forks source link

How can i get All Booking options for all the flights #31

Open riteshsethia7 opened 1 year ago

riteshsethia7 commented 1 year ago

Hi, Your code is really helpful to get the flight prices.

I would like your help to extract all booking options for flights. attaching the google flights image image

krisukox commented 1 year ago

Thank you for the issue. Do you ask for the links for booking flights? (e.g. link to the Indigo website) If so, it has not been implemented yet. I'll try to add it soon.

riteshsethia7 commented 1 year ago

No i just want to extract the price provided by each booking partner and their name for each flight. Like Flight Number - ABC Indigo - Price - XYZ happyFares -price - XYZ EaseMyTrip - price - XYZ

Like how you are currently creating a serialized url for a sector & also getting all available flight details for that sector.

krisukox commented 1 year ago

Ok, I see. Then it should be much easier to add. I'll implement it when I finish https://github.com/krisukox/google-flights-api/pull/29.

riteshsethia7 commented 1 year ago

That will be of great help. also if possible can you explain how did you find the parameters required to encode into a serializable URL i want to understand your thought process here.