Click here to Skip to main content
15,881,819 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Sorry in advance because I am very new to python and programming. I have an IP camera that captures clips to it's SD card, with an internet connection provided by a cradlepoint router. I am able to reach the camera's SD card remotely with a CGI call to a static public IP that is given by the cradlepoint. (The CGI call looks like: 166.x.x.x:port/blackvue_VOD.cgi) Which will present me with a list of MP4 files that can be downloaded. ultimately, I'd like to create a bit of python script for retrieving those files as the camera captures them without having to use the CGI call every time.
What I have so far is:

import urllib.request
x = urllib.request.urlopen('52.x.x.x:1206/blackvue_vod.cgi')

print (x.read())

(I've X'ed out the IP for privacy)
But when I run this, I will get an error: ValueError: unknown url type: '52.x.x.x:1206/blackvue_vod.cgi'
I know it's not alot to work with but can someone point me in the right direction for retrieving the files?

Thanks!

What I have tried:

urllib.request
CGI.fieldstorage (very new concept to me)
HTML hyperlinking
Posted
Comments
Richard MacCutchan 29-Nov-17 16:37pm    
.cgi files are not valid HTML.
Member 13424161 30-Nov-17 10:03am    
Thanks for your reply! So there is no way to pull and list those MP4 files within that CGI call?
Member 13424161 30-Nov-17 10:24am    
Alright thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900