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:
1234567891011121314 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'elseresults = page.evaluate ->pizza = list = document.querySelectorAll 'div.bf'for item in listpizza.push(item.innerText)return pizzaconsole.log results.join('\n')phantom.exit()
- 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.