CrapTheCoder / UpCode

Upload accepted solutions from CodeChef and CodeForces to GitHub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UpCode

A software for uploading all your accepted solutions from CodeChef, CodeForces, and Atcoder to Github with no hassles, and fully automated using Python.

How to use:

  • Generate an API key from https://github.com/settings/tokens. Make sure the repo section is checked.

  • Download the project and extract the zip file. Navigate to the extracted folder and run the following command in terminal:

    pip install -r requirements.txt
    
  • To start using the project, run the following command in terminal:

    python3 main.py
    

Modules used:

  • requests and grequests to get the html
  • BeautifulSoup4 (bs4) to parse the html
  • selenium to make CodeForces scraper more reliable
  • webdriver_manager to automatically create the chromium executable
  • PyGithub to access the GitHub API
  • json to parse CodeForces API
  • multiprocessing to parallelize CodeForces and CodeChef uploads
  • Misc: time, logging, dotenv, inspect

About

Upload accepted solutions from CodeChef and CodeForces to GitHub


Languages

Language:Python 100.0%