diff --git a/README.md b/README.md index 9620ee8..9c9aeed 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

smartbetsAPI

- Github License PyPi Black Accuracy Passing coverage Progress Downloads


+ Github License PyPi Black Accuracy Passing coverage Progress Downloads


> "Punter's choice" diff --git a/requirements.txt b/requirements.txt index 3aa5483..abb0762 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ fastapi[all]==0.110.1 appdirs==1.4.4 -requests==2.31.0 +requests[socks]==2.31.0 colorama==0.4.6 bs4==0.0.1 Faker==15.3.4 \ No newline at end of file diff --git a/setup.py b/setup.py index a2c3637..8f0776b 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def get_file(nm: str) -> list: install_requires=[ "fastapi[all]==0.110.1", "appdirs==1.4.4", - "requests==2.31.0", + "requests[socks]==2.31.0", "colorama==0.4.6", "bs4==0.0.1", "Faker==15.3.4", diff --git a/smartbets_API/__init__.py b/smartbets_API/__init__.py index 3709666..d1708ba 100644 --- a/smartbets_API/__init__.py +++ b/smartbets_API/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.2.5" +__version__ = "1.2.6" __author__ = "Smartwa Caleb" from .bet_at_rest_api_level import predictor as rest_api from .predictor import predictor diff --git a/smartbets_API/bet_common.py b/smartbets_API/bet_common.py index c1ed361..5ba2fc8 100644 --- a/smartbets_API/bet_common.py +++ b/smartbets_API/bet_common.py @@ -229,7 +229,7 @@ def nameFinder(html, sp=""): # Generating google search link def google(search): - key = re.sub(f"\s", "+", search) + key = re.sub(r"\s", "+", search) stat = f"""https://www.google.com/search?q={key}""" return stat @@ -255,7 +255,7 @@ def opener(link, fmt="html"): def getInt(score): - score = re.sub(f"\s", "", score) + score = re.sub(r"\s", "", score) after = [] score = score.split("-") for dat in score: diff --git a/smartbets_API/interface.py b/smartbets_API/interface.py index 2dbd3c6..14263d8 100644 --- a/smartbets_API/interface.py +++ b/smartbets_API/interface.py @@ -80,7 +80,7 @@ def parse_handler(): title="smartbetsAPI", summary="Worldwide soccer-matches predictor", version=__version__, - description="""View official docs at [Simatwa/smartbets](https://github.com/Simatwa/smartbetsapi)""", + description="""Visit official repo at [Simatwa/smartbets](https://github.com/Simatwa/smartbetsapi)""", license_info={ "name": "GNUv3", "url": "https://github.com/Simatwa/smartbetsAPI/blob/main/LICENSE?raw=true", @@ -122,8 +122,8 @@ class Prediction(BaseModel): - `ov25` : Probability of having more than 3 goals - `ov35` : Probability of having more than 4 goals - `choice` : Probability of the specified 'result' to occur - - `result` : The most suitable outcome from [1,1x,x,2x,2] - - `pick` : The most suitable outcome from [1,1x,x,2x,2,gg,ov15,ov25,ov35] + - `result` : The most suitable outcome from **[1,1x,x,2x,2]** + - `pick` : The most suitable outcome from **[1,1x,x,2x,2,gg,ov15,ov25,ov35]** """ g: float