Skip to content

Instantly share code, notes, and snippets.

@zoghal
Forked from adamatan/regev_snapshot.py
Last active August 29, 2015 14:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoghal/0af6d3702e567d9c140b to your computer and use it in GitHub Desktop.
Save zoghal/0af6d3702e567d9c140b to your computer and use it in GitHub Desktop.
from selenium import webdriver
from PIL import Image
import datetime
filename = "miri_regev_"+datetime.datetime.now().strftime("%Y.%m.%d.%H:%M:%S")+".png"
fox = webdriver.Firefox()
fox.get('https://www.facebook.com/miri.regev.il')
fox.save_screenshot(filename) # saves screenshot of entire page
fox.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment