Refactor and add script docstring
This commit is contained in:
11
main.py
11
main.py
@@ -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 *
|
from logic import *
|
||||||
import os, sys
|
import os
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
import argparse
|
import argparse
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
@@ -11,10 +15,7 @@ def main():
|
|||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
prog="Arbitrage Finder",
|
prog="Arbitrage Finder",
|
||||||
description="""A simple tool to find sports betting arbitrage opportunities.
|
description=__doc__
|
||||||
|
|
||||||
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."""
|
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-k", "--key",
|
"-k", "--key",
|
||||||
|
|||||||
Reference in New Issue
Block a user