Skip to content

Instantly share code, notes, and snippets.

@adammelancon
Created August 17, 2013 02:59
Show Gist options
  • Save adammelancon/6255030 to your computer and use it in GitHub Desktop.
Save adammelancon/6255030 to your computer and use it in GitHub Desktop.
How to grab a single image from a Foscam camera into a file. Obviously change the username/password combo as well as the IP address.
import urllib
urllib.urlretrieve("http://username:password@192.168.1.100/snapshot.cgi?resolution=32", "/var/www/image.jpg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment