feat(cameras): MDOT MiDrive parser -> cameras table #34
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "osint-dashboard/t_8be8d860-osint-mdot-midrive-cameras-cameras-table"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add
parse_mdot_jsonfor the official MDOT MiDriveGET /MiDrive/camera/listJSON, whose fields carry rendered HTML: coordinates and the stable id live in thecountyfield's map link (lat=/lon=/id=), and the JPEG still lives in theimagefield's<img src>.discovery_source=mdot, JPEG/snapshot_urlonly (RTSP rejected).source_urlkeyed on camera id → dedupes via existingurl_hash.scrape_sourcedispatch andCAMERA_SOURCE_URLSdefaults.Tests
test_parse_mdot_extracts_html_fields_and_bbox_filters— HTML field extract, bbox drop, missing-coords/image drop, RTSP drop.test_parse_mdot_handles_malformed_payload— non-JSON / non-list payloads return [].Verified against the live endpoint: 806 cameras parsed, all in-bbox, 806 unique url_hash keys.