MCPcopy Create free account
hub / github.com/HasData/cloudflare-bypass / humanLikeInteraction

Function humanLikeInteraction

NodeJS/full_flow_example.js:20–27  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

18}
19
20async function humanLikeInteraction(page) {
21 await page.mouse.move(100, 100);
22 await sleep(Math.random() * 1000 + 500);
23 await page.mouse.move(200, 300);
24 await sleep(Math.random() * 1000 + 500);
25 await page.evaluate(() => window.scrollBy(0, window.innerHeight / 2));
26 await sleep(Math.random() * 1000 + 1000);
27}
28
29(async () => {
30 const proxy = PROXIES[Math.floor(Math.random() * PROXIES.length)];

Callers 1

Calls 1

sleepFunction · 0.70

Tested by

no test coverage detected