Giter Club home page Giter Club logo

Comments (11)

calebjclark avatar calebjclark commented on August 25, 2024 2

@trnj, we have mouse move capabilities: https://secretagent.dev/docs/basic-interfaces/interactions

from secret-agent.

blakebyrnes avatar blakebyrnes commented on August 25, 2024

Hi @trnj,

Thanks for saying that! This is something we definitely need to do. I think we'll probably add an option to initialize a browser emulator with extra args. Or maybe we just need an ability to add --no-sandbox globally. Is that the only option you foresee needing?

from secret-agent.

vladtreny avatar vladtreny commented on August 25, 2024

Unable to lauch it on windows without --no-sandbox.

Currently, I use the following in Puppeteer.

     "--disable-gpu",
                "--disable-dev-shm-usage",
                "--no-sandbox",

              '--window-size=1600,900',
               '--start-maximized',

                '--disable-web-security', 
              '--silent-debugger-extension-api',  

                '--allow-running-insecure-content',
                '--disable-strict-mixed-content-checking',
                '--ignore-certificate-errors',

Also, is it possible to take screenshots? Sometimes it is useful. Also, I need it for OCR.

And I would like to bypass multiple bot test like https://pixelscan.net/ https://bot.sannysoft.com

There are some problems like, when I change IP or proxy, I need to set correct timezone for the new IP in order to bypass bot tests. Would be great to have it out of the box.

 const fetch = require('cross-fetch');
let info = await (await fetch('https://ipinfo.io/json')).json();
await page.emulateTimezone(info.timezone);

Also, I set webgl vendors.

Another important point is the correct Screen resolution and Available screen size (it should be smaller).

from secret-agent.

calebjclark avatar calebjclark commented on August 25, 2024

Excellent feedback, @trnj. Those features are definitely needed.

from secret-agent.

vladtreny avatar vladtreny commented on August 25, 2024

Another useful feature is mouse moves, key up, down, clicks. Puppeteer has a problem with clicks. If the element is hovered, or replaced by React frequently, then click does not work. Some bot protection services collect clicks, mouse moves.

from secret-agent.

vladtreny avatar vladtreny commented on August 25, 2024

@trnj, we have mouse move capabilities: https://secretagent.dev/docs/basic-interfaces/interactions

Thank you. Is it possible to click an element if it is hovered by another element?

from secret-agent.

blakebyrnes avatar blakebyrnes commented on August 25, 2024

@trnj Do you have a page or example with the react hover? Would love to add a unit test. For not being able to launch on Windows, what version are you using? Our CI is passing on Windows Server, and I've been able to launch on a Windows 10 VM fine.

from secret-agent.

blakebyrnes avatar blakebyrnes commented on August 25, 2024

Are you running your own custom chrome instance as well? Or the one packaged with the secret-agent chrome-83 emulator plugin?

from secret-agent.

vladtreny avatar vladtreny commented on August 25, 2024

I get the following.

ERROR UnhandledClientError {
   clientError: Error: Failed to launch the browser process! spawn C:\Users\Home\AppData\Local\chromium-756035\win64-756035\chrome-win\chrome.exe ENOENT


   TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

       at onClose (C:\Users\Home2017\Dropbox\_current_projects\jobot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\BrowserRunner.js:193:20)
       at ChildProcess.<anonymous> (C:\Users\Home2017\Dropbox\_current_projects\jobot\node_modules\puppeteer-core\lib\cjs\puppeteer\node\BrowserRunner.js:185:85)

from secret-agent.

vladtreny avatar vladtreny commented on August 25, 2024

Also, tried and got blocked immediately.

For example,
https://www.expertflyer.com - distil, blocked
https://www.leboncoin.fr/ - another bot protection, but unable to open the website.

from secret-agent.

calebjclark avatar calebjclark commented on August 25, 2024

@trnj, we'll look into both of these issues and get back to you.

from secret-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.