diprajpatra / selenium-stealth

Trying to make python selenium more stealthy.
MIT License
607 stars 88 forks source link

Documentation #4

Open muhamadrafipamungkas opened 3 years ago

muhamadrafipamungkas commented 3 years ago

Thanks for @diprajpatra for developing this great weapon..

I'm not really familiar with webdriver thing. So, can you tell me where i can get references for these arguments?

stealth(
    driver: Driver,
    user_agent: str = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.53 Safari/537.36',
    languages: [str] = ["en-US", "en"],
    vendor: str = "Google Inc.",
    platform: str = "Win32",
    webgl_vendor: str = "Intel Inc.",
    renderer: str = "Intel Iris OpenGL Engine",
    fix_hairline: bool = False,
    run_on_insecure_origins: bool = False,
)

In my case, i need to rotate User-Agent on every request i made. So, i need build relevant arguments for my dynamic UA.