Skip to content

Commit

Permalink
refactor: removed unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Dec 17, 2023
1 parent 79dc920 commit deb2762
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 39 deletions.
17 changes: 0 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,21 @@ packages = [

[tool.poetry.dependencies]
python = ">=3.10, <3.13"
appdirs = "1.4.4"
beautifulsoup4 = "4.11.2"
certifi = "2022.12.7"
cffi = "1.15.1"
charset-normalizer = "3.2.0"
cloudscraper = "1.2.71"
cryptography = "40.0.1"
greenlet = ">=2.0.1"
h11 = "0.14.0"
httpcore = "0.17.0"
importlib-metadata = "6.2.0"
playwright = ">=1.39.0"
pycparser = ">=2.21"
pyOpenSSL = ">=23.1.1"
pyparsing = ">=3.1.1"
pytz = ">=2023.3"
requests = ">=2.31.0"
requests-toolbelt = ">=1.0.0"
simplejson = ">=3.18.3"
sniffio = ">=1.3.0"
soupsieve = ">=2.4"
tqdm = ">=4.65.0"
typing_extensions = "4.5.0"
urllib3 = ">=2.0.5"
websocket-client = "1.6.3"
websockets = "11.0.3"
zipp = "3.17.0"

[tool.poetry.dev-dependencies]
black = "^23.9.1"
poetry = "^1.6.1"
poetry-core = "^1.7.0"
poetry2setup = "^1.1.0"
pylint = "^2.17.5"
pytest = "^7.4.2"
Expand Down
8 changes: 2 additions & 6 deletions quotexpy/http/navigator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import random
import requests
import cloudscraper
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from bs4 import BeautifulSoup
from urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter
from quotexpy.http.user_agents import agents

retry_strategy = Retry(
Expand Down Expand Up @@ -37,7 +36,4 @@ def get_soup(self):

def send_request(self, method, url, **kwargs):
self.response = self.session.request(method, url, headers=self.headers, **kwargs)
if not self.response:
self.session = cloudscraper.create_scraper()
self.response = self.session.request(method, url, headers=self.headers, **kwargs)
return self.response
16 changes: 0 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,17 @@
package_data = {"": ["*"]}

install_requires = [
"appdirs==1.4.4",
"beautifulsoup4==4.11.2",
"certifi==2022.12.7",
"cffi==1.15.1",
"charset-normalizer==3.2.0",
"cloudscraper==1.2.71",
"cryptography==40.0.1",
"greenlet>=2.0.1",
"h11==0.14.0",
"httpcore==0.17.0",
"importlib-metadata==6.2.0",
"playwright>=1.39.0",
"pyOpenSSL>=23.1.1",
"pycparser>=2.21",
"pyparsing>=3.1.1",
"pytz>=2023.3",
"requests-toolbelt>=1.0.0",
"requests>=2.31.0",
"simplejson>=3.18.3",
"sniffio>=1.3.0",
"soupsieve>=2.4",
"tqdm>=4.65.0",
"typing_extensions==4.5.0",
"urllib3>=2.0.5",
"websocket-client==1.6.3",
"websockets==11.0.3",
"zipp==3.17.0",
]

setup_kwargs = {
Expand Down

0 comments on commit deb2762

Please sign in to comment.