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
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: