Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question Imóvel Web #382

Closed
ronaldohoch opened this issue Nov 25, 2020 · 1 comment
Closed

Question Imóvel Web #382

ronaldohoch opened this issue Nov 25, 2020 · 1 comment

Comments

@ronaldohoch
Copy link

Hello guys!
I'm trying to print this page: https://www.imovelweb.com.br/

My code:

const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
puppeteer.use(StealthPlugin())

printFromUrl(url){
  const browser = await puppeteer.launch({ headless: true, args:[`--window-size=${1800},${1200}`, '--no-sandbox', '--disable-setuid-sandbox'] });
  const page = await browser.newPage();
  await page.goto(url,{waitUntil: 'load', timeout: 0});
  await page.waitFor(30000);
  await page.screenshot({path: `./print/${+new Date()}.png`});
  return await page.content();
}

My dependencies:
Node 10.
puppeteer" "^4.0.1",
puppeteer-extra: "^3.1.15",
puppeteer-extra-plugin-stealth: "^2.6.5"

What i Got:
image

@berstend
Copy link
Owner

Most likely related to iframe.contentWindow :-)
Fix: #137 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants