diff --git a/pyproject.toml b/pyproject.toml index 28a9782..bff38c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,12 +41,11 @@ termcolor = "^2.3.0" [tool.black] line-length = 120 -target-version = ['py311'] +target-version = ['py310', 'py311', 'py312'] exclude = ''' - ( /( - \.eggs # exclude a few common directories in the + \.eggs # exclude a few common directories in the | \.git # root of the project | \.hg | \.mypy_cache @@ -62,6 +61,7 @@ exclude = ''' ) ''' + [build-system] requires = ["poetry-core"] python_requires = ">=3.10" diff --git a/quotexpy/api.py b/quotexpy/api.py index 3939a0a..de37df9 100644 --- a/quotexpy/api.py +++ b/quotexpy/api.py @@ -79,7 +79,7 @@ def __init__(self, email: str, password: str, headless: bool): self.cookies = None self.profile = None self.websocket_thread = None - self.wss_url = f"wss://ws2.qxbroker.com/socket.io/?EIO=3&transport=websocket" + self.wss_url = "wss://ws2.qxbroker.com/socket.io/?EIO=3&transport=websocket" self.websocket_client = None self.set_ssid = None self.user_agent = None diff --git a/quotexpy/http/qxbroker.py b/quotexpy/http/qxbroker.py index f592a5c..f45800f 100644 --- a/quotexpy/http/qxbroker.py +++ b/quotexpy/http/qxbroker.py @@ -1,4 +1,5 @@ -import re, json +import re +import json import time, requests from pathlib import Path from bs4 import BeautifulSoup