Scraping javascript generated content using request in Node.Js

前端 未结 1 1405
野的像风
野的像风 2020-12-20 09:42

I need to scrape some content from Google search results that only shows in browsers (I suspect it\'s when Javascript is enabled) – specifically, their Knowledge Graph \"Peo

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

    You can't using node's request as you are merely downloading the static content. In order to render JavaScript you have to use a browser. Fortunately there are headless browsers just for this purpose. I suggest PhantomJS.

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