Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the documentation uptodate? #304

Open
paintdog opened this issue Jul 28, 2016 · 2 comments
Open

Is the documentation uptodate? #304

paintdog opened this issue Jul 28, 2016 · 2 comments

Comments

@paintdog
Copy link

paintdog commented Jul 28, 2016

The examples in the documentation didn't worked for me. I looked at the source and then I tried the following lines, which did the job:

`from ghost import Ghost, Session

ghost = Ghost()

ghost = Session(ghost)

ghost.open('http://www.google.com')

ghost.capture_to('screen_shot.png')`

Nice tool, this example maybe helpful for others - I hope.

@isurusam
Copy link

isurusam commented Aug 9, 2016

This one is working and the one in the documentation doesn't.
Thanks..

@GrexAut
Copy link

GrexAut commented Sep 15, 2016

I get an appcrash from python :( - Tried so much, if I take the code from here
http://ghost-py.readthedocs.io/en/latest/#installation
It works, but If I change the URL, appcrash from python.exe
Code:

from ghost import Ghost
ghost = Ghost()

with ghost.start() as session:
    page, extra_resources = session.open("http://google.com")
    assert page.http_status == 200 and 'jeanphix' in page.content

The funny part is, that the code you post save the screen_shot.png, but crashes...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants