Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /proc/thread-self/root/usr/local/lib/python3.8/dist-packages/webdrivermanager/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : //proc/thread-self/root/usr/local/lib/python3.8/dist-packages/webdrivermanager/edgechromium.py

# -*- coding: utf-8 -*-
import requests
import re
from bs4 import BeautifulSoup
from pathlib import Path
from .base import WebDriverManagerBase
from .misc import LOGGER, raise_runtime_error, versiontuple


class EdgeChromiumDriverManager(WebDriverManagerBase):
    """Class for downloading Edge Chromium WebDriver."""

    edgechromium_driver_base_url = (
        "https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver?maxresults=1000&comp=list&timeout=60000"
    )
    _drivers = None
    _versions = None
    driver_filenames = {
        "win": "msedgedriver.exe",
        "mac": "msedgedriver",
        "linux": None,
    }

    def get_download_path(self, version="latest"):
        version = self._parse_version(version)
        return self.download_root / "edgechromium" / version

    def get_download_url(self, version="latest"):
        """
        Method for getting the download URL for the Google Chome driver binary.

        :param version: String representing the version of the web driver binary to download.  For example, "2.39".
                        Default if no version is specified is "latest".  The version string should match the version
                        as specified on the download page of the webdriver binary.
        :returns: The download URL for the Internet Explorer driver binary.
        """
        version = self._parse_version(version)

        if not self._drivers:
            self._populate_cache(self.edgechromium_driver_base_url)

        LOGGER.debug("Detected OS: %sbit %s", self.bitness, self.os_name)
        local_osname = self.os_name
        matcher = r".*/{0}/edgedriver_{1}{2}".format(version, local_osname, self.bitness)
        entry = [entry for entry in self._drivers if re.match(matcher, entry)]
        if not entry:
            raise_runtime_error(f"Error, unable to find appropriate download for {self.os_name}{self.bitness}.")

        url = entry[0]
        filename = Path(entry[0]).name
        return (url, filename)

    def get_latest_version(self):
        if self._drivers is None or self._versions is None:
            self._populate_cache(self.edgechromium_driver_base_url)
        return ".".join(map(str, max(self._versions)))

    def get_compatible_version(self):
        raise NotImplementedError

    def _extract_ver(self, s):
        matcher = r".*\/edgewebdriver\/([\d.]+)\/edgedriver_.*\.zip"
        ret = re.match(matcher, s)
        return ret.group(1)

    def _populate_cache(self, url):
        resp = requests.get(url)
        if resp.status_code != 200:
            raise_runtime_error(f"Error, unable to get version number for latest release, got code: {resp.status_code}")

        soup = BeautifulSoup(resp.text, "lxml")

        arch_matcher = f"{self.os_name}{self.bitness}"
        drivers = filter(lambda entry: f"edgedriver_{arch_matcher}" in entry.contents[0], soup.find_all("url"))
        self._drivers = list(map(lambda entry: entry.contents[0], drivers))
        self._versions = set(map(lambda entry: versiontuple(self._extract_ver(entry)), self._drivers))

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net