Jin.GH
Jin.GH

Reputation: 11

pyspider phantom is not enabled ;501 Sever Error

I used pyspider to crawl a website, when using PhantomJs, an error occurred as follows:

enter image description here

enter image description here

I've searched for the solutions in https://github.com/binux/pyspider/issues/215, the author's seemed to solute it, so I tried, but it didn't still. How to solve it?

enter image description here

Upvotes: 1

Views: 157

Answers (1)

Kai Huang
Kai Huang

Reputation: 121

You need to check if phantomjs is in $PATH try the following:

phantomjs -v

or try the following and check the output

pyspider phantomjs

it should output

phantomjs fetcher running on port 25555

Otherwise you will need to install phantomjs on your system.

Upvotes: 1

Related Questions