-
Notifications
You must be signed in to change notification settings - Fork 263
Added CodeForces Scraper #68
Conversation
|
||
Run The Command | ||
|
||
`python codeforces_scraper.py` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the problem code must also be given
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make the requested changes in the Readme and add a screenshot of the script in action
The script works fine, Good Job @roopeshvs
Also, try to fix the errors shown by the flake8 check
soup.find('div', class_ = 'header').decompose() | ||
problem_statement_div = soup.find('div', class_ = "problem-statement") | ||
response = problem_statement_div.text.replace("$$$", "") | ||
row = response.split(' ') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable row
is never used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please add a sample.txt file, in addition to the working screenshot of the script.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Job @roopeshvs
@all-contributors please add @roopeshvs for code |
I've put up a pull request to add @roopeshvs! 🎉 |
Description
Added a Script to scrape CodeForces Problem Statement with Input & Output Examples of the question, given a CodeForces Problem Code via the Command-Line.
Fixes #34
Type of change
Choosing one or more options from the following as per the nature of your Pull request.
NOTE: These boxes can be checked using
[X]
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Documentation Update
Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.
Update index.md
)README.md
, according to the givenREADME_TEMPLATE.