added more cameras, working on image to video conversion
This commit is contained in:
17
httptest.txt
Normal file
17
httptest.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
import requests
|
||||
from time import time
|
||||
|
||||
headerz = { 'Referer' :
|
||||
'https://www.portvancouver.com/' }
|
||||
|
||||
milliseconds = int(time() * 1000)
|
||||
|
||||
while True:
|
||||
x = requests.get("https://ehub.portvancouver.com/Webcams/Photos/PortsideNo8?" + str(milliseconds), headers=headerz)
|
||||
image_name = "image" + str(milliseconds) + ".jpg"
|
||||
milliseconds -= 20000
|
||||
|
||||
if x.status_code == 200:
|
||||
with open(image_name, 'wb') as f:
|
||||
f.write(x.content)
|
||||
print(x.status_code)
|
||||
Reference in New Issue
Block a user