from ghost import Ghost
ghost = Ghost()
with ghost.start() as session:
page, extra_resources = session.open("http://www.baidu.com")
if page.http_status == 200 and 'accountName' in page.content:
print(page.content)
具体区别看文档:http://ghost-py.readthedocs.io/en/latest/