get sourcecode after javascript execution with curl

前端 未结 1 1255
北海茫月
北海茫月 2020-12-09 23:22

Is it possible to get the html source code of a webpage with curl and the run a javascript interpreter over it, so i get the generated content?

The Page i need to ge

相关标签:
1条回答
  • 2020-12-10 00:21

    You can do it, but it's more involved than I think you realize. Neither curl nor wget have Javascript engines, so you'll need something that has one.

    I would start by looking at PhantomJS.

    0 讨论(0)
提交回复
热议问题