UNPKG

proxor

Version:

A Node.js utility to fetch and analyze user profiles from multiple coding platforms including LeetCode, GeeksForGeeks, Codechef and Codeforces.

67 lines (49 loc) โ€ข 1.99 kB
# ๐Ÿ‘จโ€๐Ÿ’ป proxor Extract user profile data from popular competitive programming platforms: **GeeksforGeeks**, **CodeChef**, **Codeforces**, and **LeetCode** โ€” with simple function calls. ## ๐Ÿ“ฆ Installation ```bash npm install proxor ``` ## ๐Ÿš€ Features - ๐Ÿ“˜ Get profile data from **GeeksforGeeks** - ๐Ÿ› Extract stats from **CodeChef** - ๐Ÿ† Scrape ratings from **Codeforces** - ๐Ÿง  Fetch user data from **LeetCode** ## ๐Ÿ› ๏ธ Usage ```javascript const { getCodeChefData, getCodeforcesData, getGFGData, getLeetcodeData } = require("proxor"); getGFGData("gfg_username").then(res => console.log("GeeksforGeeks:", res)); getCodeforcesData("codeforces_username").then(res => console.log("Codeforces:", res)); getCodeChefData("codechef_username").then(res => console.log("CodeChef:", res)); getLeetcodeData("leetcode_username").then(res => console.log("LeetCode:", res)); ``` ## ๐Ÿ“˜ API Reference Each function accepts a **single parameter**: the `username` as a `string`. It returns a `Promise` that resolves to an object containing the user's public profile data. | Function | Platform | Parameter | |---------------------------|----------------|---------------------| | `getGFGData(username)` | GeeksforGeeks | `username` *(string)* | | `getCodeforcesData(username)` | Codeforces | `username` *(string)* | | `getCodeChefData(username)` | CodeChef | `username` *(string)* | | `getLeetcodeData(username)` | LeetCode | `username` *(string)* | > **Note**: Ensure that the usernames are correct and publicly accessible. ## ๐Ÿ“Œ Example Output ```json { "username": "johndoe", "totalSolved": 350, "ranking": "Expert", "countryRank": 120 "more like heatmap, contestDetails, topicWiseProblems" } ``` *Output structure may vary depending on the platform.* ## ๐Ÿงพ License Apache License 2.0 ยฉ 2025 Junjyoti Changmai