LeetCode, CodeChef, and GeeksforGeeks API client
npm install @rishiverma/leetcode-api-jsbash
npm install leetcode-gfg-codechef-api
`
Usage as a Package
`javascript
import { leetcode, codechef, geeksforgeeks } from 'leetcode-gfg-codechef-api';
// LeetCode
const leetcodeProfile = await leetcode.getUserProfile('your_username');
console.log(leetcodeProfile);
// CodeChef
const codechefProfile = await codechef.scrapeUserProfile('your_username');
console.log(codechefProfile);
// GeeksforGeeks
const gfgProfile = await geeksforgeeks.getUserProfile('your_username');
console.log(gfgProfile);
`
Usage as a Server
1. Clone the repository
2. Install dependencies: npm install
3. Start the server: npm start
The server will run on http://localhost:3000`.