|
14 | 14 | from bs4 import BeautifulSoup
|
15 | 15 |
|
16 | 16 | GECKO_API_URL = "https://api.github.com/repos/mozilla/geckodriver/releases/latest"
|
17 |
| -BACKSTOP = "135.0b9" |
| 17 | +BACKSTOP = "141.0b1" |
18 | 18 | NUMBER_ONLY = False
|
19 | 19 |
|
20 | 20 |
|
@@ -138,41 +138,42 @@ def get_gd_platform():
|
138 | 138 |
|
139 | 139 | candidate_exists = True
|
140 | 140 | this_beta = BACKSTOP
|
141 |
| - while candidate_exists: |
142 |
| - (major, minor_beta) = this_beta.split(".") |
143 |
| - (minor, beta) = minor_beta.split("b") |
144 |
| - major = int(major) |
145 |
| - minor = int(minor) |
146 |
| - beta = int(beta) |
147 |
| - |
148 |
| - next_major = f"{major + 1}.0b1" |
149 |
| - fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_major}-candidates/build1/" |
150 |
| - rs = requests.get(fx_download_dir_url) |
151 |
| - if rs.status_code < 300: |
152 |
| - latest_beta_ver = next_major |
153 |
| - this_beta = next_major |
154 |
| - continue |
155 |
| - |
156 |
| - next_minor = f"{major}.{minor + 1}b1" |
157 |
| - fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_minor}-candidates/build1/" |
158 |
| - rs = requests.get(fx_download_dir_url) |
159 |
| - if rs.status_code < 300: |
160 |
| - latest_beta_ver = next_minor |
161 |
| - this_beta = next_minor |
162 |
| - continue |
163 |
| - |
164 |
| - next_beta = f"{major}.{minor}b{beta + 1}" |
165 |
| - fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_beta}-candidates/build1/" |
166 |
| - rs = requests.get(fx_download_dir_url) |
167 |
| - if rs.status_code < 300: |
168 |
| - latest_beta_ver = next_beta |
169 |
| - this_beta = next_beta |
170 |
| - continue |
171 |
| - |
172 |
| - candidate_exists = False |
| 141 | + # while candidate_exists: |
| 142 | + # (major, minor_beta) = this_beta.split(".") |
| 143 | + # (minor, beta) = minor_beta.split("b") |
| 144 | + # major = int(major) |
| 145 | + # minor = int(minor) |
| 146 | + # beta = int(beta) |
| 147 | + |
| 148 | + # next_major = f"{major + 1}.0b1" |
| 149 | + # fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_major}-candidates/build1/" |
| 150 | + # rs = requests.get(fx_download_dir_url) |
| 151 | + # if rs.status_code < 300: |
| 152 | + # latest_beta_ver = next_major |
| 153 | + # this_beta = next_major |
| 154 | + # continue |
| 155 | + |
| 156 | + # next_minor = f"{major}.{minor + 1}b1" |
| 157 | + # fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_minor}-candidates/build1/" |
| 158 | + # rs = requests.get(fx_download_dir_url) |
| 159 | + # if rs.status_code < 300: |
| 160 | + # latest_beta_ver = next_minor |
| 161 | + # this_beta = next_minor |
| 162 | + # continue |
| 163 | + |
| 164 | + # next_beta = f"{major}.{minor}b{beta + 1}" |
| 165 | + # fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_beta}-candidates/build1/" |
| 166 | + # rs = requests.get(fx_download_dir_url) |
| 167 | + # if rs.status_code < 300: |
| 168 | + # latest_beta_ver = next_beta |
| 169 | + # this_beta = next_beta |
| 170 | + # continue |
| 171 | + |
| 172 | + # candidate_exists = False |
173 | 173 |
|
174 | 174 | status = 200
|
175 |
| - build = 0 |
| 175 | + build = 2 |
| 176 | + latest_beta_ver = BACKSTOP |
176 | 177 | while status < 400 and build < 20:
|
177 | 178 | build += 1
|
178 | 179 | fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{latest_beta_ver}-candidates/build{build}/"
|
|
0 commit comments