Do you need python to use casper.js? if so, why?

I never use python. The only language I know is JavaScript. I use node to surf the web and I continued to read about how casper.js can clean web pages. so I thought I could use it as usual. Now I am in the installation, and I get 'python' is not recognized as an internal or external command, operable program or batch file.I know that this means putting python in my path. I do not want to install python.

I am using JavaScript, why should I install python? I'm just confused by the fact that since it casper.jshas jsin the end, I would think that it would rely on js, not python. so that you can confirm if I really need to install python. I really don't want to deal with another language right now. Is this a simple process?

+4
source share
2 answers

Yes, casper.js requires Python: http://docs.casperjs.org/en/latest/installation.html

PhantomJS 1.9.1 or higher. Please read the installation instructions for PhantomJS

Python 2.6 or later for casperjs in the bin / directory

JavaScript. (, , ) CasperJS script Python.

+1

python casper.js?

.

, ?

CasperJS python, python .

python 2.0 ( node.js ).


, : CasperJS node.js. , node python, . CasperJS - PhantomJS, webkit, , , javascript, node.js.

:

CasperJS npm, node.js NodeJS . casper, require ('casperjs) node.

+2

All Articles