Refactor and add script docstring

This commit is contained in:
Daan Koning
2022-11-25 13:02:58 +01:00
parent 9016740f72
commit 81635111e8

11
main.py
View File

@@ -1,5 +1,9 @@
"""A simple tool to find sports betting arbitrage opportunities.
The tool fetches the odds from The Odds API (https://the-odds-api.com/) and compares the odds at different
bookmakers to each other in order to determine whether there are profitable and risk-free bets available."""
from logic import *
import os, sys
import os
from itertools import chain
import argparse
from dotenv import load_dotenv
@@ -11,10 +15,7 @@ def main():
parser = argparse.ArgumentParser(
prog="Arbitrage Finder",
description="""A simple tool to find sports betting arbitrage opportunities.
The tool fetches the odds from The Odds API (https://the-odds-api.com/) and compares the odds at different
bookmakers to each other in order to determine whether there are profitable and risk-free bets available."""
description=__doc__
)
parser.add_argument(
"-k", "--key",