swcheckin.southwest module

Southwest Checkin.

class swcheckin.southwest.Reservation(number: str, first: str, last: str, verbose: bool = False)[source]

Bases: object

The Reservation Class.

static generate_headers()[source]

Generate the headers necessary for request.

Returns:

dict – The header

safe_request(url: str, body: Optional[str] = None)[source]

Loops the request a set number of times [Default: 40].

Arguments:

url {str} – southwests url for mobile

Keyword Arguments:

body {Optional[str]} – extra info (default: {None})

Returns:

{dict} – The json from southwest

load_json_page(url: str, body: Optional[str] = None)[source]

Load the page with the info we need.

Arguments:

url {str} – southwests url for mobile

Keyword Arguments:

body {Optional[str]} – extra info (default: {None})

Returns:

[type] – [description]

with_suffix(uri)[source]

Add the sw suffix to the url.

Arguments:

uri {str} – The URL

Returns:

str – The Url with the suffix added.

lookup_existing_reservation()[source]

Find our existing record.

get_checkin_data()[source]

Get the Checkin Data.

checkin()[source]

Check in function.

Returns:

[str] – returns the confirmation