Skip to content
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

open #76

Open
jedibig opened this issue Oct 4, 2022 · 2 comments
Open

open #76

jedibig opened this issue Oct 4, 2022 · 2 comments

Comments

@jedibig
Copy link

jedibig commented Oct 4, 2022

It seams like openflights does not allow api calls anymore, there is a timestamp in shareDetails entry when loading reservation that contains timestamp

Traceback (most recent call last):
  File "./checkin.py", line 101, in <module>
    auto_checkin(reservation_number, first_name, last_name, verbose)
  File "./checkin.py", line 66, in auto_checkin
    airport_tz = openflights.timezone_for_airport(leg['departureAirport']['code'])
  File "/usr/src/app/southwest/openflights.py", line 14, in timezone_for_airport
    airport_tz = pytz.timezone(json.loads(tzresult.text)['airports'][0]['tz_id'])
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@h4xdaplanet
Copy link

Yes it seems like they put some sort of request wall up

I ended up switching to the Flightaware AeroAPI as a replacement

@zach-portnoff
Copy link

Yes it seems like they put some sort of request wall up

I ended up switching to the Flightaware AeroAPI as a replacement

Do you have a working version with this replacement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants