Non-browser emulation of JavaScript - is it possible?

前端 未结 8 2277
眼角桃花
眼角桃花 2020-12-17 21:13

I have a new project I am working on that involves fetching a webpage, (using PHP and cURL) parsing the HTML and javascript out of it and then handling the data in the resul

8条回答
  •  Happy的楠姐
    2020-12-17 22:08

    you could take a look in rhino. It use java, never heard of a PHP port.

    Are you obligated to run the actual javascript?

提交回复
热议问题