It can download all the provided test cases for a single problem or all problems of a single contest at once with proper folder structure.
And create solution files for c++ and as well as python with the contents of cpp_template.txt and py_template.txt for each problem.
# Install requests via pip:
pip install requests
Just provide the link of a problem or a contest with a path(where to download). Here the path is optional.
If don't provided then it will by default use the default path provided in CF_Bot.py at line 93
Run CF_Bot.py and give link and path(optional! separated by ','[comma character]).
Run Command: python CF_Bot.py
# Example 1:
Enter info(link, path): https://codeforces.com/contest/1389/problem/C
# Example 2:
Enter info(link, path): https://codeforces.com/contest/1389/, C:\Users\Shanto\Desktop\CodeForces
Also it can be run with command line arguments.
Give link and path(optional! separated by 'ย '[space character] and also surround it with double quotation if it contains space character in it!) as command line arguments.
# Example 1:
python CF_Bot.py https://codeforces.com/contest/1389/problem/C
# Example 2:
python CF_Bot.py https://codeforces.com/contest/1389/ "C:\Users\Shanto\Desktop\CodeForces"
# Output: Example 1
Codeforces Bot by Shanto Noor !...
Starting process...
Link: https://codeforces.com/contest/1389/problem/C
Path: C:\Users\Shanto\Desktop\CodeForces
C. Good String\
C. Good String.py
C. Good String.cpp
input.txt
output.txt
Process finished successfully!...
# Output: Example 2
Codeforces Bot by Shanto Noor !...
Starting process...
Link: https://codeforces.com/contest/1389/
Path: C:\Users\Shanto\Desktop\CodeForces
Educational Codeforces Round 92 (Rated for Div. 2)\
A. LCM Problem\
A. LCM Problem.py
A. LCM Problem.cpp
input.txt
output.txt
B. Array Walk\
B. Array Walk.py
B. Array Walk.cpp
input.txt
output.txt
C. Good String\
C. Good String.py
C. Good String.cpp
input.txt
output.txt
D. Segment Intersections\
D. Segment Intersections.py
D. Segment Intersections.cpp
input.txt
output.txt
E. Calendar Ambiguity\
E. Calendar Ambiguity.py
E. Calendar Ambiguity.cpp
input.txt
output.txt
F. Bicolored Segments\
F. Bicolored Segments.py
F. Bicolored Segments.cpp
input.txt
output.txt
input1.txt
output1.txt
input2.txt
output2.txt
G. Directing Edges\
G. Directing Edges.py
G. Directing Edges.cpp
input.txt
output.txt
input1.txt
output1.txt
Process finished successfully!...