Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Read the rendered upload job ID without relying on Chromium's inspector response cache
Cinna Davis5cec67ca3a01
diff --git a/scripts/verify_real_upload_browser.py b/scripts/verify_real_upload_browser.pyindex c38afd2..2dec1d9 100644--- a/scripts/verify_real_upload_browser.py+++ b/scripts/verify_real_upload_browser.py@@ -126,7 +126,11 @@ def main():page.locator("#submit").click(timeout=milliseconds(30))response = uploaded.valuerequire(response.status == 202, f"UI upload returned HTTP {response.status}")- job_id = response.json()["job_id"]+ # Large uploads can evict response bodies from Chrome's inspector cache.+ # Read the application's rendered identifier, then fetch results directly.+ job_label = page.locator("#job-id")+ expect(job_label).to_have_text(re.compile(r"^JOB [0-9a-f]{32}$"), timeout=milliseconds(30))+ job_id = job_label.inner_text(timeout=milliseconds(10)).strip().removeprefix("JOB ")require(re.fullmatch(r"[0-9a-f]{32}", job_id), "Invalid submitted job identifier")job_directory = jobs / job_idsaved_url = origin + "/?job=" + job_id