diff --git a/README.md b/README.md index 61b17dee..60008317 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,7 @@ Automatically downloads the driver binary and patches it. ## Installation ## ``` -pip install undetected-chromedriver -``` -or , if you're feeling adventurous, install directly via github - -``` -pip install git+https://www.github.com/ultrafunkamsterdam/undetected-chromedriver@master # replace @master with @branchname for other branches +pip install git+https://www.github.com/medsagou/undetected-chromedriver@master # replace @master with @branchname for other branches ``` diff --git a/setup.py b/setup.py index aaba3a7d..fc74eae0 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ dirname = os.path.abspath(os.path.dirname(__file__)) with codecs.open( - os.path.join(dirname, "undetected_chromedriver", "__init__.py"), + os.path.join(dirname, "undetected_chromedriver_modified_sagou", "__init__.py"), mode="r", encoding="utf-8", ) as fp: @@ -37,16 +37,16 @@ ) setup( - name="undetected-chromedriver", + name="undetected-chromedriver-modified-sagou", version=version, - packages=["undetected_chromedriver"], + packages=["undetected_chromedriver_modified_sagou"], install_requires=[ "selenium>=4.9.0", "requests", "websockets", ], - package_data={"undetected_chromedriver": [os.path.join("example", "example.py")]}, - url="https://github.com/ultrafunkamsterdam/undetected-chromedriver", + package_data={"undetected_chromedriver_modified_sagou": [os.path.join("example", "example.py")]}, + url="https://github.com/medsagou/undetected-chromedriver", license="GPL-3.0", author="UltrafunkAmsterdam", author_email="info@blackhat-security.nl", diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver_modified_sagou/__init__.py similarity index 99% rename from undetected_chromedriver/__init__.py rename to undetected_chromedriver_modified_sagou/__init__.py index d31055a3..b907c41f 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver_modified_sagou/__init__.py @@ -11,7 +11,7 @@ Y88b. 888 888 888 Y88..88P 888 888 888 Y8b. Y88b 888 888 888 Y8bd8P Y8b. 888 "Y8888P 888 888 888 "Y88P" 888 888 888 "Y8888 "Y88888 888 888 Y88P "Y8888 888 88888888 -by UltrafunkAmsterdam (https://github.com/ultrafunkamsterdam) +by UltrafunkAmsterdam AND MODIFIED BY SAGOU (https://github.com/medsagou) """ from __future__ import annotations @@ -302,7 +302,7 @@ def __init__( if any([_ in arg for _ in ("--headless", "headless")]): options.arguments.remove(arg) - options.headless = True + # options.headless = True if "lang" in arg: m = re.search("(?:--)?lang(?:[ =])?(.*)", arg) @@ -395,7 +395,7 @@ def __init__( if no_sandbox: options.arguments.extend(["--no-sandbox", "--test-type"]) - if headless or options.headless: + if headless: #workaround until a better checking is found try: if self.patcher.version_main < 108: @@ -485,8 +485,8 @@ def __init__( else: self._web_element_cls = WebElement - if options.headless: - self._configure_headless() + # if options.headless: + # self._configure_headless() def _configure_headless(self): orig_get = self.get @@ -840,7 +840,7 @@ def __del__(self): self.service.process.kill() except: # noqa pass - self.quit() + # self.quit() #Fixing __expection getting ignore error @classmethod def _ensure_close(cls, self): diff --git a/undetected_chromedriver/cdp.py b/undetected_chromedriver_modified_sagou/cdp.py similarity index 100% rename from undetected_chromedriver/cdp.py rename to undetected_chromedriver_modified_sagou/cdp.py diff --git a/undetected_chromedriver/devtool.py b/undetected_chromedriver_modified_sagou/devtool.py similarity index 100% rename from undetected_chromedriver/devtool.py rename to undetected_chromedriver_modified_sagou/devtool.py diff --git a/undetected_chromedriver/dprocess.py b/undetected_chromedriver_modified_sagou/dprocess.py similarity index 100% rename from undetected_chromedriver/dprocess.py rename to undetected_chromedriver_modified_sagou/dprocess.py diff --git a/undetected_chromedriver/options.py b/undetected_chromedriver_modified_sagou/options.py similarity index 100% rename from undetected_chromedriver/options.py rename to undetected_chromedriver_modified_sagou/options.py diff --git a/undetected_chromedriver/patcher.py b/undetected_chromedriver_modified_sagou/patcher.py similarity index 100% rename from undetected_chromedriver/patcher.py rename to undetected_chromedriver_modified_sagou/patcher.py diff --git a/undetected_chromedriver/reactor.py b/undetected_chromedriver_modified_sagou/reactor.py similarity index 100% rename from undetected_chromedriver/reactor.py rename to undetected_chromedriver_modified_sagou/reactor.py diff --git a/undetected_chromedriver/webelement.py b/undetected_chromedriver_modified_sagou/webelement.py similarity index 100% rename from undetected_chromedriver/webelement.py rename to undetected_chromedriver_modified_sagou/webelement.py