Pirate API for aviasales.ru
Project description
aviasales pirate API wrapper
Async convenient wrapper for the unofficial aviasales API
Installation
pip install aviasales
Example of usage
from aviasales import AviaSalesAPI
api = AviaSalesAPI()
async def run():
search_uuid = await api.start(
origin="DME", destination="IST", departure_at="2022-05-30"
)
results = await api.get_flight_legs(search_uuid)
print(results.flight_legs) # show flight transfers and routes
print(results.tickets) # show available tickets
if __name__ == '__main__':
import asyncio
asyncio.run(run())
Terminal output
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aviasales-0.0.1.tar.gz
(4.0 kB
view hashes)