Yash-Parsana / CrazyCoderServerlessApi

This is backend api of CrazyCoder App which serves realtime data from various platforms through web scraping hosted on Netlify Serverless function. CrazyCoder App: https://github.com/Yash-Parsana/CrazyCoderApp | CrazyCoder website : https://crazycoder-eight.vercel.app
https://play.google.com/store/apps/details?id=com.parsanatech.crazycoder
15 stars 15 forks source link

Route for gfg profile data/rating #42

Closed kart2004 closed 4 months ago

kart2004 commented 4 months ago

This commit fixes #12 : Expose route for gfg profile data

Approach: We fetch the html content of the GeeksforGeeks user profile page using an HTTP GET request. We then uses Cheerio to parse the HTML content and navigate to extract required information. We extract the required data and structure it into a JSON response format and send it back to the client.

This is the final result when I tested on local host:

image

I have made one major change to scheduleController.js in order to add the GeeksForGeeksProfile function and I've made minor changes elsewhere too ensure the route works.

image