Skip to content

Commit

Permalink
Update readme and clean up (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
krisukox authored Aug 7, 2023
1 parent 48465f2 commit 4453f6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Google Flights API

[![Go Reference](https://pkg.go.dev/badge/github.com/krisukox/google-flights-api/flights.svg)](https://pkg.go.dev/github.com/krisukox/google-flights-api/flights)

This project is a Go client library for the Google Flights API. The client produces direct requests to the Google Flights API, which is much faster than using WebDriver.

The Google Flights API doesn't have official documentation, so the project relies on analyzing how the [Google Flights website](https://www.google.com/travel/flights/) communicates with the backend.
Expand Down
1 change: 0 additions & 1 deletion flights/flight.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ func (s *Session) doRequestFlights(args OffersArgs) (*http.Response, error) {
req.Header.Set("cache-control", `no-cache`)
req.Header.Set("content-type", `application/x-www-form-urlencoded;charset=UTF-8`)
req.Header["cookie"] = s.cookies
// req.Header.Set("cookie", `CONSENT=PENDING+672`)
req.Header.Set("pragma", `no-cache`)
req.Header.Set("user-agent", `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36`)
req.Header.Set("x-goog-ext-259736195-jspb",
Expand Down

0 comments on commit 4453f6e

Please sign in to comment.