You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
carrerasrodrigo edited this page Mar 10, 2013
·
1 revision
Selective download let you choose witch files you don't want to download during ghost execution. This will help you to improve the speed of your project. Let's see an example:
from ghost import Ghost
# Creates a Ghost instance telling to don't download css files and images
gh = Ghost()
gpage, name = gh.create_page(download_images=True, prevent_download=["css"])
# Open google
gpage.open("http://www.google.com")
# Saves an image of the screen
gpage.capture_to("/tmp/selective_download.png")