For this example, I know it is easier to use requests or similar python module.
But I need to do it with the ghost.py module
This code sample doesn't work:
from ghost import Ghost
ghost = Ghost()
with ghost.start() as session:
page, extra_resources = session.open('http://www.7-zip.org/a/7z1506-x64.exe')
with open('7z1506-x64.exe', 'wb') as file:
file.write(session.http_resources)