pydoll icon indicating copy to clipboard operation
pydoll copied to clipboard

Generate Browser Finger Print

Open dx-bear opened this issue 10 months ago • 6 comments

Hello,

First of all, thank you for this amazing library! It's fast and works flawlessly.

I have a question or possibly a feature request:

How can I generate a unique fingerprint each time I start the browser? I want to stay undetectable, but I keep getting flagged even when using proxies.

dx-bear avatar Mar 13 '25 18:03 dx-bear

Hi @dx-bear, thanks for your feedback!

I'll implement this feature, but you already can do that in a more manual way. For example, you can change your user agent:

options.add_argument('--user-agent=new_useragent')

You also override your timezone:

await page._execute_command({"method": "Emulation.setTimezoneOverride", "params": {"timezoneId": "timezone_id"}})
# you can check the timezones here: https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt

You can also change the hardware concurrency:

await page._execute_command({"method": "Emulation.setHardwareConcurrencyOverride", "params": {"hardwareConcurrency": 5}})

To change your location:

await page._execute_command({"method": "Emulation.setLocaleOverride", "params": {"locale": "pt_BR"}}) # en_US, etc

There are others emulations, but I think those above are sufficient. Also, you can check this markdown I've created, there are more informations about stay undetectable.

thalissonvs avatar Mar 14 '25 02:03 thalissonvs

Thanks

dx-bear avatar Mar 14 '25 03:03 dx-bear

If that works for you, please close the issue as resolved :)

thalissonvs avatar Mar 14 '25 03:03 thalissonvs

I Still getting detected but i think it is a proxy problem

dx-bear avatar Mar 14 '25 04:03 dx-bear

I hope you implement this feature there is a nice Finger print Generator library that you can use it https://github.com/scrapfly/fingerprint-generator

dx-bear avatar Mar 14 '25 06:03 dx-bear

https://github.com/3-Tokisaki-Kurumi/pydoll-enhance

或许您可以测试一下,maybe you can test fingerprint camouflage

3-Tokisaki-Kurumi avatar May 10 '25 03:05 3-Tokisaki-Kurumi