Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using this script for Allsvenskan.se/api/ #123

Closed
RobertSmith8 opened this issue Nov 4, 2022 · 1 comment
Closed

Using this script for Allsvenskan.se/api/ #123

RobertSmith8 opened this issue Nov 4, 2022 · 1 comment

Comments

@RobertSmith8
Copy link

Hi, this script works great for FPL. I have been trying to use it on https://fantasy.allsvenskan.se/api/ by changing the constant API_BASE_URL but I getting error in fpl.py.

I would be more than thankful for some tips how I can use this package in Sweden :)

# API_BASE_URL = "https://fantasy.premierleague.com/api/"
  API_BASE_URL = "https://fantasy.allsvenskan.se/api/"
   
    static = json.loads(resp.read().decode("utf-8"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
@RobertSmith8
Copy link
Author

Adding se. in the beginning of URL solved it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant