Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

README.md

Outline

Codechef Scraper

This python script will let the user to scrape 'n' number of codechef problems from any category/difficulty in https://www.codechef.com/ ,as provided by the user. The functionality of the script is to gain the information regarding particular codechef problem in different PDFs.

Prerequisite Steps:

Download the required packages from the following command in you terminal.(Make sure you're in the same project directory)

pip3 install -r requirements.txt

To run this script,you need to have selenium installed and configure webdriver to use chrome browser in your$PATH.You can directly download chrome driver from the link below- https://chromedriver.chromium.org/downloads Further,you can set the path to chromedriver using

driver = webdriver.chrome("/usr/lib/chromium-browser/chromedriver") 

Running the script:

After installing all the requirements,run this command in your terminal.

python3 codechef.py

Output:

This script will generate 'n' number of different PDFs in a folder to store the problem information (problem title,problem statement,test cases,problem link) separately.

image

image

Author: Smriti Raina

Morty Proxy This is a proxified and sanitized view of the page, visit original site.