aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-12-09 15:21:36 -0700
committerMelody Horn <melody@boringcactus.com>2020-12-09 15:21:36 -0700
commit1db751ddab9a675116e7dd927e7e99ec222d44f3 (patch)
treec1e1cce984c8460da947620841e807e66aa707b0 /dev
parentcfc9d8d73e3c603187d76e17a4cf3d749dfd1395 (diff)
downloadpig.observer-1db751ddab9a675116e7dd927e7e99ec222d44f3.tar.gz
pig.observer-1db751ddab9a675116e7dd927e7e99ec222d44f3.zip
update NYC camera URLs
Diffstat (limited to 'dev')
-rw-r--r--dev/nyc/convert.py2
1 files changed, 1 insertions, 1 deletions
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