From Google Code of PhantomJS , you can download PhantomJS 1.2.0 Windows executable – Static. More compact, but does not support https. and said, this version is statically linked, therefore HTTPS is not supported. For HTTPS support please download the dynamic version. (You can only download dynamic build version now.)
With some effort, I compile a static version with https/ssl support, if you like it, please download here.
Here a 14-line PhantomJS script which finds pizzeria in New York (using Google Places), along with the address and the telephone number:page = new WebPage() page.open 'http://www.google.com/m/local?site=local&q=pizza+in+new+york', Â (status) -> Â Â if status isnt 'success' Â Â Â console.log 'Unable to access network' Â Â else Â Â Â results = page.evaluate -> Â Â Â Â pizza =  Â Â Â Â list = document.querySelectorAll 'div.bf' Â Â Â Â for item in list Â Â Â Â Â pizza.push(item.innerText) Â Â Â Â return pizza Â Â Â console.log results.join('\n') Â Â phantom.exit()
Get the code and build it, and then enjoy some more simple and advanced examples, covering:
- running regression tests from command line
- getting driving direction
- showing weather forecast conditions
- finding pizza in New York
- looking up approximate location based on IP address
- pulling the list of seasonal food
- producing PDF version of a Wikipedia article
- rasterizing SVG to image
For questions and feedback, please post to phantomjs mailing-list.
PhantomJS is based on Qt. There are two implementations, using C++ and Python.
2 thoughts on “PhantomJS Static Windows Version with SSL support”
I have a question about compiling static version.
I couldn’t compile QtWebkit as static library.
Let me know how you could do it.
please use mingw cross env on Linux, compile it first, then compile your Qt projects. http://mingw-cross-env.nongnu.org/