Flight Arbtrage
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
seleniumto work
Release files for flight_arbitrage 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flight_arbitrage-1.0.0.tar.gz | 22.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flight_arbitrage-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.5 kB
Release files / flight_arbitrage-1.0.0.tar.gz
| Download URL | flight_arbitrage-1.0.0.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac5497f69759887209590fed16b0e1981d204f8ec6227317c6046438d1b41e01
|
|
BLAKE2b-256 checksum How to use checksums |
7b2ba5f411e60ecbcf6ad6da2993377d75429d41b003e62fbd5733014d61eecb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Release files / flight_arbitrage-1.0.0-py3-none-any.whl
| Download URL | flight_arbitrage-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f14dc89a26e96db05d20f65565667727e3fac75ec668ca7d7b6465476dac30d
|
|
BLAKE2b-256 checksum How to use checksums |
de644b66730bc2f0bccb035dbe3233bdc02815a6c2595f407d65aa579d9df3a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|