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

Method fetch_release_number

seleniumbase/undetected/patcher.py:125–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 return self.is_binary_patched()
124
125 def fetch_release_number(self):
126 from urllib.request import urlopen
127
128 path = "/latest_release"
129 if self.version_main:
130 path += "_%s" % self.version_main
131 path = path.upper()
132 logger.debug("Getting release number from %s" % path)
133 if self.version_main and int(self.version_main) > 114:
134 from seleniumbase.console_scripts import sb_install
135 return (
136 sb_install.get_cft_latest_version_from_milestone(
137 str(self.version_main)
138 )
139 )
140 return urlopen(self.url_repo + path).read().decode()
141
142 def fetch_package(self):
143 """Downloads chromedriver from source.

Callers 1

autoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected