re4lvanshsingh / Codeforces_Codechef_Converter

Converts the rating in between two popular competitive programming platforms- Codeforces and Codechef
1 stars 4 forks source link

Add next 4 contests and their corresponding date and time for CodeChef, AtCoder and Leetcode using Web Scraping in codeclock.html #8

Closed re4lvanshsingh closed 7 months ago

re4lvanshsingh commented 7 months ago

Since there is no dedicated API for these platforms - CodeChef, AtCoder and LeetCode, I want someone to use Web-Scraping to fetch the contest data (next 4 contests, their date and timing) everytime I reload the page.

In more formal terms: When you perform web scraping without an API, your script essentially simulates the process of a user accessing a webpage, fetching the HTML content, and extracting the relevant information. This means that every time you want the latest data, you would need to run your web scraping script to fetch the data from the website.

Use BeautifulSoup or some other WebScraper for this purpose. Now, add it to the HTML Page.

The query should be such that everytime I refresh the page, I am scraping the data from the original websites.

GauravGupta993 commented 7 months ago

I would like to work on this issue. Please assign this issue to me.

re4lvanshsingh commented 7 months ago

@GauravGupta993 Sure, look at the previous work done in codeclock.html and begin. Incase of any query, DM me on discord or you could even ask it here.

Assigned.

MiirzaBaig commented 7 months ago

can i work on this?

GauravGupta993 commented 7 months ago

can i work on this?

I am already working on this issue.

re4lvanshsingh commented 7 months ago

@I-MirzaBaig You can work on this issue. @GauravGupta993 it has been 3 days since I assigned you the work. You should have completed this work earlier.

Whoever makes the PR first gets the point.

GauravGupta993 commented 7 months ago

I am done with the Atcoder Scraping but the problem I am getting with Leetcode and CodeChef is that only the next 2 contests information are present on their sites instead of 4. https://www.codechef.com/contests/ https://leetcode.com/contest/

re4lvanshsingh commented 7 months ago

@GauravGupta993 No problem.

When you scrape the websites, only two tuples would appear instead of the usual 4. Ignore the NULL values and then display only those two values.