GeeksForGeeksAPI icon indicating copy to clipboard operation
GeeksForGeeksAPI copied to clipboard

Fix: Updated Code to Extract Data from the Latest GeeksforGeeks Website Update

Open SanjaySRocks opened this issue 1 year ago • 1 comments

Fix: Updated Code to Extract Data from the Latest GeeksforGeeks Website Update

The code was previously unable to extract problem data due to the recent update on the GeeksforGeeks website.

  1. update basic details fetch
  2. update question counts

Here is working response

{
    "info": {
        "userName": "sanjaysinghg2u",
        "profilePicture": "https://www.geeksforgeeks.org//_next/image/?url=https%3A%2F%2Fmedia.geeksforgeeks.org%2Fauth%2Fprofile%2Fawzuzqhvdopng6ug26ds&w=256&q=75",
        "instituteRank": "20",
        "currentStreak": "38",
        "maxStreak": "1221",
        "institution": "Kanpur Institute of Technology (KIT) Kanpur",
        "languagesUsed": "Java, C++, C, Python",
        "campusAmbassador": "",
        "codingScore": "393",
        "totalProblemsSolved": "110",
        "monthlyCodingScore": ""
    },
    "solvedStats": {
        "school": {
            "count": 0,
            "questions": []
        },
        "basic": {
            "count": 3,
            "questions": []
        },
        "easy": {
            "count": 42,
            "questions": []
        },
        "medium": {
            "count": 55,
            "questions": []
        },
        "hard": {
            "count": 10,
            "questions": []
        }
    }
}

SanjaySRocks avatar Dec 05 '24 21:12 SanjaySRocks

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
geeks-for-geeks-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2024 6:48am

vercel[bot] avatar Dec 05 '24 21:12 vercel[bot]