Coder Social home page Coder Social logo

codeforces-bot's Introduction

Codeforces-Bot

What can it do!

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.

Setup/Installation

Requirements: Python 3.7+, Python Modules: requests, re, os, sys

All required modules are built in modules except requests module!

# Install requests via pip: 
pip install requests

How to use

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!...

Thanks For Reading!

codeforces-bot's People

Contributors

shantonoor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.