0

I'm using node to get content of html page from url. Here is my code:

request({
url     : url,
gzip    : true,
timeout : 2000
}, function(error, response, html){
   console.log(html); 
});

But some of url when I run it appear message "Please enable JavaScript to view the page content.". I'm try google a lot of thing but still not yet work. How can I fix it?

ex url: http://www.barnesandnoble.com/blog/this-weeks-biggest-books/

dev.rocket
  • 175
  • 2
  • 9

1 Answers1

0

Node.js scraping currently does not process Javascript and so you can only retrieve javascript-less data, such as JSON objects from APIs and such. Hope that clears things up!

Tejas
  • 701
  • 3
  • 11