From 1db751ddab9a675116e7dd927e7e99ec222d44f3 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 9 Dec 2020 15:21:36 -0700 Subject: update NYC camera URLs --- dev/nyc/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev/nyc') diff --git a/dev/nyc/convert.py b/dev/nyc/convert.py index f6a10f5..31694db 100644 --- a/dev/nyc/convert.py +++ b/dev/nyc/convert.py @@ -14,7 +14,7 @@ for camera in data: cam['id'] = camera['id'] cam['name'] = camera['content'] fetched = requests.get('https://nyctmc.org/google_popup.php', params={'cid': camera['id']}) - match = re.search('http://207.251.86.238/cctv\\d+.jpg', fetched.text) + match = re.search(r'https://jpg.nyctmc.org(:443)?/cctv\d+.jpg', fetched.text) if match is None: pprint(camera) continue -- cgit v1.2.3