Git Product home page Git Product logo

Comments (5)

amosbastian avatar amosbastian commented on May 24, 2024 1

Others on the Discord server also encountered this problem and apparently solved it with this:

image

I don't really have time to look into this deeper, but if you can find a fix and want to contribute, feel free to make a PR. Otherwise you can try the workaround (although I don't really understand it 😅).

from understat.

ChrisMusson avatar ChrisMusson commented on May 24, 2024 1

When making any request to understat.com even in a browser, the beget cookie is passed, so I don't think there is any possibility of a fix without using this.

All tests pass when adding cookies={'beget': 'begetok'} to the fetch function in utils. I think this would be a good fix for now at least.

If anyone wants to create that PR then feel free, or I can do it later this evening.

from understat.

BeatTheBookie avatar BeatTheBookie commented on May 24, 2024

Error occurs while decoding the data.
Checking whether RegEx still filters the data correct.

image

from understat.

Nick-Hope avatar Nick-Hope commented on May 24, 2024

Yep, adding cookies={'beget': 'begetok'} seems to fix it. Hoping they don't start changing the names of the cookies!

from understat.

BeatTheBookie avatar BeatTheBookie commented on May 24, 2024

Great, thanks for the feedback.

Let's keep the issue open.
I will test, whether the problem can be fixed without the cookie names.

from understat.

Related Issues (17)

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.