This project adheres to Semantic Versioning
pip install flight_arbitrage
-
Parse plane tickets for arbitrage opportunities
-
Scrape websites in a headless browser mode
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)
Flight Arbitrage is MIT licensed, as found in the LICENSE file.
- You may have to play around with getting
selenium
to work