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

points_rank no longer available #112

Open
jmares opened this issue Dec 5, 2021 · 8 comments
Open

points_rank no longer available #112

jmares opened this issue Dec 5, 2021 · 8 comments

Comments

@jmares
Copy link

jmares commented Dec 5, 2021

Since 2021-12-04 I received error messages triggered by missing points_rank. Is it possible Duolingo changed its API?

My temporary (?) solution was to remove all references to points_rank in my code, download the duolingo.py from this repository and remove the one reference to points_rank in the function get_language_progress(self, lang).

Current code:

fields = ['streak', 'language_string', 'level_progress',
     'num_skills_learned', 'level_percent', 'level_points',
     'points_rank', 'next_level', 'level_left', 'language',
     'points', 'fluency_score', 'level']

Modified code:

fields = ['streak', 'language_string', 'level_progress',
     'num_skills_learned', 'level_percent', 'level_points',
     'next_level', 'level_left', 'language',
     'points', 'fluency_score', 'level']

As I didn't do anything with points_rank apart from storing it in a database, that was all it took to get my app up and running again.

@golmschenk
Copy link

I'm having a similar issue with the points_ranking_data key (likely due to the same change). Minimal example of this failing:

import time
from duolingo import Duolingo
from secret import duolingo_password, duolingo_username

duolingo = Duolingo(duolingo_username, duolingo_password)
query_results = duolingo.get_leaderboard('week', time.time())

@jmares
Copy link
Author

jmares commented Dec 5, 2021

As I am only using a couple of the functions from this package, I was wondering if it was the only change to the API.
Apparently, it isn't.

@TsarSPb
Copy link

TsarSPb commented Dec 10, 2021

Yep, apparently, quite a few things got broken. get_friends() doesn't work since the 4th of Dec.

@andreasscherbaum
Copy link
Contributor

Same problem here, also ran into the problem with get_friends().
Ignored the errors so far, and only now found time to look into this.

lidiaCirrone added a commit to lidiaCirrone/pw-duolingo-data that referenced this issue Dec 30, 2021
Bapt5 added a commit to Bapt5/Duolingo that referenced this issue Jun 23, 2022
@isaacnorman82
Copy link

Is there going to be a new release with a fix for this soon?

@Bapt5
Copy link

Bapt5 commented Aug 2, 2022

@isaacnorman82 I will open a pull request and I hope that it will be merged.

@isaacnorman82
Copy link

Any update @Bapt5 ?

@isaacnorman82
Copy link

OK I raised #126

Is this project still active?

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

6 participants