Giter Site home page Giter Site logo

dipta007 / codeforce-code-downloader_gym_regular Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 16.7 MB

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

Python 100.00%
codeforces selenium python codeforces-api gym gym-contest urllib2

codeforce-code-downloader_gym_regular's Introduction

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

codeforce-code-downloader_gym_regular's People

Contributors

dipta007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

m0xyasser

codeforce-code-downloader_gym_regular's Issues

don't run in the ubuntu 16.04

Running on ubuntu 16.04.

error report

Traceback (most recent call last):
File "codeforces-downloader.py", line 51, in
driver = webdriver.Chrome( GetPathOfChromeDriver() )
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 68, in init
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver_linux' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

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.