Last active
May 18, 2023 08:16
-
-
Save zachbf/6866a6a719e71af81a9d9685750f90e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from zeep import Client | |
#https://www.airservicesaustralia.com/naips/briefing-service?wsdl | |
#https://www.airservicesaustralia.com/naips/briefing-service?xsd=1 | |
def main(): | |
endpoint = 'https://www.airservicesaustralia.com/naips/briefing-service?wsdl' | |
client = Client(wsdl=endpoint) | |
# Customize your request here | |
request_data = { | |
'requestor': 'naips_username', | |
'password': 'naips_password', | |
'source': 'atis', | |
'loc': ['YSSY', 'YMML'], | |
#'duration': '6', # Adjust the duration as per your requirement | |
'flags': {'met': True} | |
} | |
response = client.service['loc-brief'](**request_data) | |
print(response.content) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment