Mình dùng nodejs puppeteer. Cho chờ 30s vẫn ko pass dc bro nào qua giups minh cái Code: const puppeteer = require('puppeteer-extra') const StealthPlugin = require('puppeteer-extra-plugin-stealth') puppeteer.use(StealthPlugin()) puppeteer.launch({ headless: true }).then(async browser => { const page = await browser.newPage() await page.setViewport({ width: 800, height: 600 }) await page.setExtraHTTPHeaders({ 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36', 'upgrade-insecure-requests': '1', 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3', 'accept-encoding': 'gzip, deflate, br', 'accept-language': 'en-US,en;q=0.9,en;q=0.8' }) console.log(`Take screenshot`) await page.goto('https://whoer.net/ru/checkwhois') await page.waitForTimeout(30000) await page.screenshot({ path: 'whoer.png', fullPage: true }) console.log(`All done, check the screenshots. ✨`) await browser.close() }) --- Double Post Merged, Aug 4, 2021, Original Post Date: Aug 4, 2021 --- Vẫn trả về
Thay await page.waitForTimeout(30000) Nên là page.waitForSelector(element) và 30000 thì hơi mau bác tăng lên 100000 đi và
Bác cứ code y chang thằng này là pass được cái 5s Code: https://github.com/FlareSolverr/FlareSolverr/blob/master/src/providers/cloudflare.ts