-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add frequency #3
Comments
Hello @gh4n Unfortunately looks like it is not possible. Leetcode API returns Check this one for example https://leetcode.com/problems/perfect-squares/ It returns zero frequency:
Even though the real frequency is 35% I'll check if it is possible to fetch this infromation via graphql API. |
Graphql returns zero as well.
Looks like this information is not available publicitly. Let me know if you find other ways to acquire it. The code change to add it to the card is simple once I have the information. Here is a PR for that #4 (so I can reuse it later in case it is needed) |
Found out that GraphQL request |
Thanks if I get a chance I’ll have a look too! |
One more observation. The frequency field is null when you remove csrf cookie from the request. Need to check if the propagation of the cookie works correctly within the leetcode client. |
Okay. It's confirmed. LC client with expired csrf cookies returns null frequency. Running it with up to date cookie returns an actual value. |
Hey @prius would it be possible to get the
frequency
of a problem as a tag in anki? This would make it a lot easier to prioritise canonical problems.Thanks I really love this tool!
The text was updated successfully, but these errors were encountered: