Skip to main content

Finds arbitrage in plane ticket prices

Project description

Flight Arbtrage

PyPI Version Build Status Documentation Status Code Coverage Code Quality PyPI - Python Version

This project adheres to Semantic Versioning

Install

pip install flight_arbitrage

Features

  • Parse plane tickets for arbitrage opportunities

  • Scrape websites in a headless browser mode

Examples

Common

from flight_arbitrage.hidden_city import OneWay

arbitrage = OneWay('JFK', 'SLC', '07/10/2021')
a = arbitrage.find_arbitrage(headless=True)
print(f'Is there an arbitrage opportunity: {len(a) > 0}')
for d in a:
    print(d)

Change airport list to search

from flight_arbitrage.hidden_city import OneWay

arbitrage = OneWay('JFK', 'SLC', '07/10/2021')
a = arbitrage.find_arbitrage(headless=True, 
                             override=True,
                             override_filename='custom_list.txt')
print(f'Is there an arbitrage opportunity: {len(a) > 0}')
for d in a:
    print(d)

License

Flight Arbitrage is MIT licensed, as found in the LICENSE file.

Notes

  • You may have to play around with getting selenium to work

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flight_arbitrage-1.0.0.tar.gz (22.1 kB view hashes)

Uploaded Source

Built Distribution

flight_arbitrage-1.0.0-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page