-
Notifications
You must be signed in to change notification settings - Fork 1
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
No results for multi-city #2
Comments
Could you please clarify the issue? |
Hi there, This is due to the EU Consent Request page. (See #1). As mentioned in the issue by IHannes, they added a cookie and everything seems to be working fine. We can add the cookies = { "CONSENT": "YES+" }
# tag: v0.3
get_flights(filter, cookies=cookies) Refer to stackoverflow.com • bypassing-eu-consent-request for more. P.S. I'm not aware of the "EU Consent Request" when developing this project since I'm not in the region. I'm deeply sorry for my oversight and any inconvenience caused. Regards, |
No this is not about the cookies I know about this because I debugged into the return request and get the html text and rendered it in https://htmledit.squarefree.com/ it renders find but there are no flights and blue color flow indicating search is continuing is running left to right
where
|
Hi again, Ahh, I understand the context now. Both flights/fast_flights/flights.proto Line 25 in c6e4d96
I assume that Just to keep this package light, we can use the try.playwright.tech API to scrape the flights. If you'd like me to implement this, please let me know. Alternatively, you can try the code below before API
requests.post(
"https://try.playwright.tech/service/control/run",
headers={ "User-Agent": "... your user agent" },
json={
"code": "# some playwright python code",
"language": "python"
}
) Sincerely, |
returns no flights however if I manually use
https://www.google.com/travel/flights?tfs=GhoSCjIwMjQtMDYtMTlqBRIDSVNUcgUSA0xBWBoaEgoyMDI0LTA3LTA5agUSA05ZQ3IFEgNJU1RCAQFIAZgBAw%3D%3D&hl=en&tfu=EgQIABABIgA
which is the generated link there are flights
I think the problem is results take about 2-3 secs to populate but response.get returns almost immediately without waiting
The text was updated successfully, but these errors were encountered: