Coder Social home page Coder Social logo

Comments (4)

marcplouhinec avatar marcplouhinec commented on August 16, 2024

In the same vein, I had to modify overrideIntlAPI in utils.js as the key argument is sometimes a Symbol instead of a string:

function overrideIntlAPI(language){
    try {
        // ...
    
        overridePropertyWithProxy(window, 'Intl', {
            get(target, key){
                if(typeof key !== 'string' || key[0].toLowerCase() === key[0]) return target[key]; // Add a check in case key is not a string
                return new Proxy(
                    target[key],
                    innerHandler
                );
            }
        });
    } catch (e) {
        // ...
    }
}

This caused the website to detect my scraper and redirect me to the login page. Now I can scrap data with Puppeteer 21.5.0 (Playwright is detected).

from fingerprint-suite.

barjin avatar barjin commented on August 16, 2024

Hello @marcplouhinec and thank you for your interest in this project (and sorry for the wait)!

Both changes seem reasonable - a PR is welcome :) In case you haven't done this before - you fork this project, make the changes, and then create a PR from your project against this one. This way, you can still make a pull request to this repository without being a member of the Apify GitHub organization.

Cheers!

from fingerprint-suite.

thangman22 avatar thangman22 commented on August 16, 2024

@marcplouhinec Sorry to interrupt your contribution but I got this bug too @barjin please merge my PR

from fingerprint-suite.

marcplouhinec avatar marcplouhinec commented on August 16, 2024

I just submitted the pull request #257. It is very similar to the one of @thangman22 but I limited changes as much as possible (no code reformatting).

from fingerprint-suite.

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.