Skip to content

Latest commit

 

History

History
72 lines (52 loc) · 2.13 KB

README.md

File metadata and controls

72 lines (52 loc) · 2.13 KB

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