Tag Archives: images

Saving Screenshots of Webpages using Python+webkit2png

Example for scanning and saving Google Mars images:

import os 
for j in range(120):
  for i in range(180):
    os.system('python webkit2png -F -W 1280 -H 800 -D img -o test%(imgnum)05d "http://www.google.com/mars/#lat=%(lat).6f&lon=%(lon).6f&zoom=8&map=visible"'  % {'imgnum': j*180+i, 'lon': 2*i-180, 'lat': j-60} )
Advertisements