3 ms·
Is there anything wrong with the python bindings to phantom? I used phantomjs (it's great)a few years ago and I thought there were some python bindings to the o
by boothead 13y ago
Is there anything wrong with the python bindings to phantom? I used phantomjs (it's great)a few years ago and I thought there were some python bindings to the original phantom C++ library - could be wrong though.
- waitwhatwhoa 13y agoAriya Hidayat & co have put a monumental amount of effort into exposing the inner workings of webkit in phantomjs - I'm not sure I see the necessity for a python rewrite. Taking a quick look at the code, most everything I use phantomjs for outside of screenshotting is not available. A great start for sure, but unless there are some fundamental shortcomings with phantomjs that I'm unaware of, I agree with boothead that python bindings are probably the way to go.
- heydenberk 13y agoOne thing that jumps out at me is that phantompy uses Qt5 internally, while phantomjs uses Qt4. There are lots of new WebKit features and optimizations in Qt5.
- rjh29 13y agophantomjs will target Qt5 in the next release, 2.0.
- Herald_MJ 13y agoThere were a set of Python bindings for phantom.js named PyPhantomjs, and it was included in actual phantom releases, but the maintainer moved away from the project, no-one stepped forward and it was ultimately removed from the project (https://github.com/ariya/phantomjs/issues/10344 https://github.com/ariya/phantomjs/issues/10344). So this project is really useful.
- kanzure 13y ago> no-one stepped forward and it was ultimately removed from the project Here's the source code, if you are interested: https://github.com/kanzure/pyphantomjs https://github.com/kanzure/pyphantomjs