Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 622 Bytes

File metadata and controls

18 lines (11 loc) · 622 Bytes

leetcode-sync-tool

A Python tool that automatically uploads accepted LeetCode solutions to a GitHub repository, organized by problem number and title, with a self-updating README indexed by difficulty and topic.

Stack

Python · PyGithub · LeetCode GraphQL API · Streamlit · python-dotenv

Setup

  1. Clone the repo
  2. Create a virtual environment and run install the requirements
  3. Copy .env.example to .env and fill in your credentials
  4. Run python src/sync.py

Note

Requires a GitHub Personal Access Token (repo scope) and a LeetCode session cookie. See .env.example for required variables.