How do I log the fingerprint that's generated for the current browser?
I've looked all over the documentation, it doesn't explain how we can log/show the currently generated fingerprint for the current session.
The website I'm trying to scrape is setting the cookies, I'm using premium residential proxy of a different country and already set the launchOptions geo location for that country, but somehow that website is still detecting my timezone as my home country's and setting it as a cookie, which is probably how they are detecting the request as a bot. I'd like to check what exactly the fingerprint generator is setting to debug. anyone knows how?
3 Replies
equal-aqua•3y ago
in
PlaywrightCrawlingContext
there is browserController
https://crawlee.dev/api/next/playwright-crawler/interface/PlaywrightCrawlingContext#browserController
You can use something like:
Works for me.rare-sapphireOP•3y ago
Ah I see. Thats how datadome is detected and graylisting the browser session and shows captcha puzzle every time.
The webGL hash and canvas fingerprint hash is always the same for every session.
fingerprint is not injecting the proper fonts, its leaking my system fonts and webrtc and webgl data. Its also not injecting the plugins object, its coming up as "undefined"
the console shows that crawlee is generating this font object:
fonts: [ 'Arial Unicode MS', 'Gill Sans', 'Helvetica Neue', 'Menlo' ]
but http://coveryourtracks.eff.org is generating my actual system fonts. I know that the fingerprint is infact being injected into the session because the rest of the information is consistent with the generated fingerprint object and is different every time. But the canvas hash and webGL hash is always the same.
This is the font data that I see on coveryourtracks run through a crawlee session:
System Fonts
Andale Mono, Arial, Arial Black, Arial Hebrew, Arial Narrow, Arial Rounded MT Bold, Arial Unicode MS, Comic Sans MS, Courier, Courier New, Geneva, Georgia, Helvetica, Helvetica Neue, Impact, LUCIDA GRANDE, Microsoft Sans Serif, Monaco, MYRIAD PRO, Palatino, Tahoma, Times, Times New Roman, Trebuchet MS, Verdana, Wingdings, Wingdings 2, Wingdings 3 (via javascript)
This is just my initial run, there might be other information thats not being injected properly. Is this the expected behaviour?Cover Your Tracks
See how trackers view your browser
equal-aqua•3y ago
Hey. Thanks for your report.
Devs are aware of the problem.
You can to track this issue here:
https://github.com/apify/fingerprint-suite/issues/8