-
Notifications
You must be signed in to change notification settings - Fork 96
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 support for LeetCode #415
Comments
@wingkwong can I take up this issue? |
@PriyalsantoshJain I'm not the owner of this repo. Better wait for @raj454raj to endorse first. |
@wingkwong sure. |
Hey @PriyalsantoshJain you can take this up if Leetcode supports public submissions page or an API. Don't think this can be picked until then |
Hey, Is anyone working on this? |
@raj454raj Please add the submissions of leetcode too. It will be indeed helpful. |
Is public submissions page or an API below one - for example? FYI - @PriyalsantoshJain if you want to help implement |
URL :: https://leetcode.com/graphql
QUERY ::
{ matchedUser(username: "YOUR_USERNAME") {
username
submitStats: submitStatsGlobal {
acSubmissionNum {
difficulty
count
submissions
}
}
}
}
Sample Response ::
{
"data": {
"matchedUser": {
"username": "YOUR_USERNAME",
"submitStats": {
"acSubmissionNum": [
{
"difficulty": "All",
"count": 44,
"submissions": 75
},
{
"difficulty": "Easy",
"count": 23,
"submissions": 42
},
{
"difficulty": "Medium",
"count": 20,
"submissions": 32
},
{
"difficulty": "Hard",
"count": 1,
"submissions": 1
}
]
}
}
}
}
…On Fri, Aug 19, 2022 at 7:57 PM Manohar Reddy Poreddy < ***@***.***> wrote:
@raj454raj <https://github.com/raj454raj>
Is public submissions page or an API below one - for example?
https://leetcode.com/contest/weekly-contest-306/ranking
If yes, yes, it has API to get all data for contests & users submissions
using a script, can be seen easily via Chrome incognito mode.
FYI - @PriyalsantoshJain <https://github.com/PriyalsantoshJain> if you
want to help implement
—
Reply to this email directly, view it on GitHub
<#415 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANB5MY4SZ7IK6RZ2KQICZ73VZ6KVFANCNFSM4PGLII3A>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
[image: Kind regards,]
SHRIYANSH AGARWAL
Student , Lovely Professional University
+91-7652093392
| www.lpu.in
| ***@***.*** ***@***.***>
Kanpur, UttarPradesh <https://maps.google.com/?q=Kanpur,+UttarPradesh>
<https://www.facebook.com/shriyanshagarwal.0502/>
<https://www.linkedin.com/in/shriyanshagarwal/>
Create your own email signature
<https://www.wisestamp.com/create-own-email-signature/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=>
|
Also clist.by is already doing: |
Hey @manoharreddyporeddy @ShriyasnhAgarwl We need to get "ALL" the submissions given a handle of the user. If you're logged in to Leetcode, try opening this page - https://leetcode.com/submissions/#/1. The same history is not available on a logged out state. Just getting the counts is not enough. Let me know if I am missing some API which gives this. |
Hey @raj454raj 1 === Stay motivated by seeing your friends competitive programming progress. Add friends to see their submissions on various Competitive Programming websites (currently Codeforces, Codechef, Spoj, HackerEarth, HackerRank, UVa). === 2 |
For a user ( example uwi , https://leetcode.com/uwi/ )
=== Payload
Response
=== NOTE:
=== thanks for trying |
Hey @manoharreddyporeddy, Thank you for your detailed inputs
I did check this API. The problem with this is only "Accepted" submissions. Also the "limit" is capped at 20, try calling it with 30.
Have updated this list now. |
Hey @raj454raj , A brother has created an API for many Competitive Programming Platforms including Leetcode. Using this API, we can check the total problem solved on LeetCode. Please check the links below. Hopefully, it will be useful for you. Here is the Repository Link: Here is a link for LeetCode API: |
Please add submissions of LeetCode(problemset and contests) too. Thanks
The text was updated successfully, but these errors were encountered: