如何从命令行wappalyzer phantomjs获取数据?

如何从命令行wappalyzer phantomjs获取数据?,phantomjs,Phantomjs,我需要使用wappalyzer phantomjs获取url数据。当我在命令行上运行phantomjs时,它工作正常。但我需要在网页上获取json响应。我可以使用php或其他方式在网页上获取响应吗。我没有得到完整的示例。请帮助。是的,您可以使用php来实现 $output=shell_exec('/usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs--ssl协议=any--ignore ssl errors=true driver

我需要使用wappalyzer phantomjs获取url数据。当我在命令行上运行phantomjs时,它工作正常。但我需要在网页上获取json响应。我可以使用php或其他方式在网页上获取响应吗。我没有得到完整的示例。请帮助。

是的,您可以使用php来实现

$output=shell_exec('/usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs--ssl协议=any--ignore ssl errors=true driver.js'); echo json_解码($output,true)


注意:将此“/usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/”更改为安装phantomjs的目录。

您需要执行以下命令:

$output = shell_exec('/usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs --ssl-protocol=any --ignore-ssl-errors=true driver.js http://example.com'); echo json_decode($output,true);
注意:将此“
/usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/
”更改为安装
phantomjs的目录