MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / fetch_package

Method fetch_package

seleniumbase/undetected/patcher.py:142–151  ·  view source on GitHub ↗

Downloads chromedriver from source. :return: path to downloaded file

(self)

Source from the content-addressed store, hash-verified

140 return urlopen(self.url_repo + path).read().decode()
141
142 def fetch_package(self):
143 """Downloads chromedriver from source.
144 :return: path to downloaded file """
145 from urllib.request import urlretrieve
146
147 u = "%s/%s/%s" % (
148 self.url_repo, self.version_full, self.zip_name
149 )
150 logger.debug("Downloading from %s" % u)
151 return urlretrieve(u)[0]
152
153 def unzip_package(self, fp):
154 """ :return: path to unpacked executable """

Callers 1

autoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected