Skip to content

jrinder42/Flight_Arbitrage

Repository files navigation

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