Skip to content

[Sportec] 403 Forbidden error when downloading open data #527

@probberechts

Description

@probberechts

It looks like Figshare has changed how file downloads are handled. For example, this URL should download the event data for the match with ID "J03WPY":

$ curl -X GET "https://springernature.figshare.com/ndownloader/files/51643505"

However, the request now returns:

<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>

From what I can tell, the issue is coming from AWS’s load balancer, which is identifying our requests as automated/bot traffic and blocking them.

For now, a workaround is to download all files manually and then load them locally with kloppy.sportec.load_event / kloppy.sportec.load_tracking.

This also breaks the documentation build, since it relies on the open data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions