-
Notifications
You must be signed in to change notification settings - Fork 142
Example broken? #102
Description
Trying this based on the example and reading through issues.
`
from pprint import pprint
from fast_flights import FlightQuery, Passengers, create_query, get_flights
from fast_flights.integrations import BrightData
query = create_query(
flights=[
FlightQuery(
date="2026-02-16",
from_airport="MYJ",
to_airport="TPE",
),
],
seat="economy",
trip="one-way",
passengers=Passengers(adults=1),
language="zh-TW",
)
res = get_flights(query)
pprint(res)
`
I get this error:
Impersonate 'chrome_133' does not exist, using 'random' Traceback (most recent call last): File ".venv/lib/python3.13/site-packages/fast_flights/fetcher.py", line 61, in get_flights return parse(html) File ".venv/lib/python3.13/site-packages/fast_flights/parser.py", line 25, in parse return parse_js(script.text()) ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'text'