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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

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