|
1 | | -Codechef Scraper |
| 1 | +# Codechef Scraper |
2 | 2 | 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.
|
3 | 3 |
|
4 | 4 |
|
5 | | -Prerequisite Steps: |
| 5 | +## Prerequisite Steps: |
6 | 6 | Download the required packages from the following command in you terminal.(Make sure you're in the same project directory)
|
| 7 | + |
| 8 | +``` |
7 | 9 | pip3 install -r requirements.txt
|
8 | 10 |
|
9 | | -To run this script,you need to have selenium installed and configure webdriver to use chrome browser.You can directly download chrome driver from the link below- |
| 11 | +``` |
| 12 | + |
| 13 | +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- |
10 | 14 | https://chromedriver.chromium.org/downloads
|
11 | 15 | Further,you can set the path to chromedriver using
|
12 | | -driver= webdriver.chrome("/usr/lib/chromium-browser/chromedriver") |
13 | 16 |
|
14 | | -Running the script: |
| 17 | +``` |
| 18 | +driver = webdriver.chrome("/usr/lib/chromium-browser/chromedriver") |
| 19 | + |
| 20 | +``` |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +## Running the script: |
15 | 25 | After installing all the requirements,run this command in your terminal.
|
| 26 | + |
| 27 | +``` |
16 | 28 | python3 codechef.py
|
17 | 29 |
|
18 | | -Output: |
| 30 | +``` |
| 31 | + |
| 32 | +## Output: |
19 | 33 | This script will generate 'n' number of different PDFs in a folder to store the problem information (problem title,problem statement,test cases) separately.
|
20 | 34 |
|
| 35 | +https://user-images.githubusercontent.com/30191221/113629602-46a4ff80-9684-11eb-8938-c6e8f934d3ae.png |
| 36 | + |
| 37 | +https://user-images.githubusercontent.com/30191221/113629697-64726480-9684-11eb-9d14-3b1ac515d40e.png |
21 | 38 |
|
22 | 39 | Author:
|
23 | | -Smriti Raina [https://github.com/smriti26raina] |
| 40 | +[Smriti Raina](https://github.com/smriti26raina) |
0 commit comments