Questions tagged [ghost.py]

Ghost is a webkit client written in Python, it provides people making a Python based application to access web applications.

Ghost

Ghost is a webkit client coded in and written by jeanphix,

usage

from ghost import Ghost
ghost = Ghost()
page, extra_resources = ghost.open("http://jeanphi.fr")

Resources

68 questions
2
votes
1 answer

Ghost.py not Finding PySide

I am working on a script and require Ghost.py for working with Javascript. I installed Qt and Pyside but this error keeps coming when i try to execute my document. Exception: Ghost.py requires PySide or PyQt I am doing this in my .py file before…
Sasha
  • 492
  • 2
  • 6
  • 21
1
vote
0 answers

How to get request body of XMLHttpRequest (XHR) using Python (Ghost.py)?

I am trying to load a web page and monitor it for XHR (XMLHttpRequests). To do this I am using Ghost.py with Python2.7. I can see the XHR being made and can read the URL and response, however I would like to read the request body so that I can…
1
vote
0 answers

Can I load HTML on Ghost.py

Can I load HTML on Ghost.py , If I use BeautifulSoup get the HTML code , how to load it on Ghost.py . I try but not success, : from ghost import Ghost() from urllib.request import urlopen from bs4 import BeautifulSoup page =…
Er Tong
  • 11
  • 3
1
vote
1 answer

CentOS 7 Python ImportError: cannot import name QtWebkit even though it's in my PyQt4 site-packages directory

I'm trying to install Ghost.py in CentOS 7. I've installed the packages below, but it appears that I've missed something, or a path is not available somewhere. I'm really struggling here, and not sure what I've missed. sudo yum install cmake qconf…
mudda
  • 274
  • 3
  • 14
1
vote
2 answers

How to download a file with the ghost.py module?

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,…
baltazer
  • 259
  • 1
  • 5
  • 12
1
vote
0 answers

If I open this URL in one of the popular browsers, will I probably get a HTTPS error?

I need to write a Python 3 script that answers the question in the title. By "HTTPS error" I mean both the obvious error page advising user not to proceed and the errors visible in browser console, like “Blocked loading mixed active content”. So far…
Bartosz Marcinkowski
  • 6,651
  • 4
  • 39
  • 69
1
vote
0 answers

Ghost.py throwing errors in QPainter with default everything

I am trying to figure out why when i ghost.capture() a webpage i get 6 errors per capture. I am using Ghost.py and PySide to capture full screen browsers. Errors below QT: QPainter::begin: Paint device returned engine == 0, type: 3 QT:…
Darthlemi
  • 173
  • 1
  • 1
  • 9
1
vote
1 answer

Ghost.py - click specific button

I'm trying to click specific button but with no result yet. Using Python 3.4.2 and Ghost.py. This code is under many div's and li's. The simplest answer is welcomed!
Fred
  • 103
  • 3
  • 14
1
vote
0 answers

QWaitCondition error when multiprocessing with python ghost.py

I'm using multiprocessing and ghost.py to crawl some data from the internet, but there are some errors: 2015-03-31T23:22:30 QT: QWaitCondition: Destroyed while threads are still waiting This is some of my code: l.acquire() global ghost …
VictorLin
  • 59
  • 1
  • 3
1
vote
1 answer

Is there a way to delete Ghost.py's leftovers after I finished using it?

I'm using ghost package in my script for scraping a website. Since I have many pages to scrape, ghost is used many times, about 30 times per page and I might have hundreds of pages to scrape. I noticed, when running my script, that after about 25…
sivan
  • 223
  • 1
  • 3
  • 12
1
vote
0 answers

install SIP/PyQt4/Ghost on windows 7 and Python 2.7.9

after searching for an answer and since i'm new to python and not knowledgeable enough, i really need help with this. it starts from my need to use ghost.py. for this installation i need PyQt and before that i need SIP installed. so when downloading…
sivan
  • 223
  • 1
  • 3
  • 12
1
vote
1 answer

Python: Using Ghost for dynamic webscraping

Trying to get the weather data from: http://metservice.com/maps-radar/local-observations/local-3-hourly-observations Did find example here on how to use Ghost for web scraping dynamic content but I have not found out how to handle the result.…
IgorLopez
  • 157
  • 1
  • 1
  • 10
1
vote
0 answers

Prevent Confirm/Alert dialogs in Ghost.py

In my django app I use Ghost.py to render a web page with some Javascript. The problem is that sometimes the JS takes a while to run and Ghost.py thinks that my JS script is not working well and raises the typical confirmation box asking me whether…
ngonzalvez
  • 431
  • 2
  • 10
1
vote
1 answer

Possible to install PySide or PyQt on Heroku?

I am not able to install PySide and cannot figure out how to install PyQt on Heroku. I need PySide in order to use Ghost.py. Here is what I include in my requirements.txt: Ghost.py==0.1b3 PySide==1.2.2 And here is the error when pushing to…
Sunny Malotrha
  • 563
  • 2
  • 5
  • 19
1
vote
2 answers

Use ghost.py to click a link linking to a javascript

I have a link (http://bank.hangseng.com/1/PA_1_1_P1/ComSvlet_MiniSite_eng_gif?app=eINVCFundDetailsOV&pri_fund_code=U44217) that I am learning to extract the data inside using python, now I have come to ghost.py. I want to click the I Agree, which…
lokheart
  • 23,743
  • 39
  • 98
  • 169