Untitled
unknown
javascript
2 years ago
828 B
5
Indexable
const puppeteer = require('puppeteer-extra'); const proxy = "global.rotating.proxyrack.net:10090"; const StealthPlugin = require('puppeteer-extra-plugin-stealth'); const stealth = StealthPlugin(); // stealth.enabledEvasions.clear(); // This will disable all evasion techniques puppeteer.use(stealth); function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } // main (async () => { const browser = await puppeteer.launch({ headless: false, args: [ `--proxy-server=${proxy}`, ], }); const page = await browser.newPage(); await page.goto('https://abrahamjuliot.github.io/creepjs/'); await sleep(500000); // You can do things here like extract content, take screenshots, etc. await browser.close(); })();
Editor is loading...