Open sferoze opened 10 years ago
what does your js look like?
I had the following simple one line and it worked for me
webshot('http://www.nytimes.com/', 'test.png');
Looks like a sometimes ad banner that gets served every now and then on all these news sites. Are you able to select the "Skip this ad" bit using a callback in your options on page load:
var options = {
onLoadFinished: function() {
// Fancy code for detecting the ad, deleting it
}
}
webshot('http://www.nytimes.com/', 'nytimes.png', options)
Note that this is just how NY Times chooses to render content for you, based on your IP, User Agent, time of day, etc. This is not a node-webshot issue (or even a PhantomJS issue).
Here is what I see when I go to nytimes.com in my browser:
Here is what I see when I look at the screenshot webshot module takes of nytimes.com
Why is this happening, and can I fix this somehow?