Giter VIP home page Giter VIP logo

gitcode's Introduction

GitCode & GitChef

These tools make it possible to extract all your solutions from LeetCode and CodeChef to your local machine and commit them to a git repository.

Features

  • Supports O-Auth login
  • Supports user-pass login
  • Creates folder for every of your problem solutions
  • Exports all of your problem solutions in separate folders
  • Additionally, exports problem descriptions with them
  • Specify path for problem solutions
  • Commit solution to git repository

Usage

  • Setup Git with your GitHub account on your local machine
  • Optionally fork this repository
  • Clone the repository on your local machine
  • Install the projects' dependencies (see Dependencies)
  • Run either GitCode.py or GitChef.py from the project root folder with:
    • cd GitCode && python ./GitCode.py
    • cd GitChef && python ./GitChef.py

Dependencies

This project requires a working Python 3.6+ installation. If the pip package manager is installed and the system is not externally managed (e.g. by the Linux distribution), the Python dependencies are installed automatically. If it is externally managed, you need to install the packages listed in the requirements.txt file or use one of the commands for your Linux distribution.

Arch Linux

This assumes that the AUR package install helper paru is installed. If another one is used, it can usually be substituted with its name or the listed packages are cloned and built itself with makepkg.

# Install dependencies for GitCode
pacman -S python-pysocks python-async_generator python-attrs python-certifi \
          python-charset-normalizer python-exceptiongroup python-h11 python-idna \
          python-outcome python-packaging python-dotenv python-requests python-sniffio \
          python-sortedcontainers python-tqdm python-trio python-trio-websocket \
          python-urllib3 python-wsproto
paru -S python-selenium python-webdriver-manager python-pybrowsers python-poetry

# Install dependencies for GitChef
pacman -S python-html5lib python-lxml python-requests
paru -S python-bs4

Contributors

Contributions and feedback are welcome!

gitcode's People

Contributors

adityaseth777 avatar ayush786113 avatar dakralex avatar sabyasachi-seal avatar samyak072 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gitcode's Issues

Bugs and improvements

Before mentioning, I should specify that I am on Windows and not on Linux.

I found some bugs:

  1. The processed problems doesn't cross over 65-70 whereas the user has done over 200 or more problems. Issues with pages.
  2. The program keeps getting stuck on solved premium problems (that were once free or made free during contests/challenges).

Improvements (Also can be termed as a bug):

  1. Suppose someone has succesfully solved a problem and then attempts to solve it using a different method and fails, this program takes the failed attempt into error and not the successfully solved one.

Wanting to add more features.

Sabyasachi Da, I want to add the feature for automating solutions from Codechef or/and GFG.
I want to add an additional file thus enabling users to select which platform they want to choose.

I want to contribute to it.
Can I ?

Aditya.
(You mentioned in your Hacktoberfest demo video that one should raise an issue before contributing, so :'))

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.