/codeforce-code-downloader_gym_regular

Download all your accepted solutions ( gym + contest ) from Codeforces

Primary LanguagePython

Codeforces Code Downloader [ Gym + Contest ]

By this code, you can download your all accepted solutions from codeforces overnight.

Prerequisites

python 2.7, selenium, urllib

Installing

First install python 2.7 ( python 3.x wont work for now ) urllib is already installed in most of the PC

Install pip

Then install selenium by executing this command in terminal

sudo pip install selenium

Then,

1. Download the whole folder
2. Move all the files to the folder, where you want to save all your codes
3. If you have submitted any code in coach mode, please make it ON before running this script.
4. Just run "codeforces-downloader.py" file on your terminal
5. Give your username and password

And,

5. Go for a coffee or workout
6. Coming home you will see all your accepted codes in a arranged way :) 

Features:

  • Download all your accepted codes from codeforces including gym and coach mode
  • If the download interrupted for any cause, next time the download will be resumed.
  • All solutions will be arranged in a structured way

Built With

  • Python - The main platform
  • urllib - To get data from Codeforces API
  • Selenium - Used to get the source code
  • json - Used to parse data from Codeforces API

Authors

  • Shubhashis Roy Dipta - Initial work - dipta007

Acknowledgments

  • Thanks to manojpandey for his awesome code from that I got the idea