Skip to content

Conversation

@SanjaySRocks
Copy link

@SanjaySRocks SanjaySRocks commented Dec 5, 2024

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": []
        }
    }
}

@vercel
Copy link

vercel bot commented Dec 5, 2024

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

@SanjaySRocks SanjaySRocks changed the title Update scrap.py Fix: Updated Code to Extract Data from the Latest GeeksforGeeks Website Update Dec 5, 2024
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

Successfully merging this pull request may close these issues.

1 participant