{"id":47516126,"url":"https://github.com/Rage997/leetfetch","last_synced_at":"2026-04-01T07:00:44.410Z","repository":{"id":300731889,"uuid":"1006927238","full_name":"Rage997/leetfetch","owner":"Rage997","description":"A commandline python tool to fetch all leetcode submissions.","archived":false,"fork":false,"pushed_at":"2025-06-23T10:10:53.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T10:23:27.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rage997.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-23T07:51:07.000Z","updated_at":"2025-06-23T10:10:56.000Z","dependencies_parsed_at":"2025-06-23T10:33:37.744Z","dependency_job_id":null,"html_url":"https://github.com/Rage997/leetfetch","commit_stats":null,"previous_names":["rage997/leetfetch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rage997/leetfetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rage997%2Fleetfetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rage997%2Fleetfetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rage997%2Fleetfetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rage997%2Fleetfetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rage997","download_url":"https://codeload.github.com/Rage997/leetfetch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rage997%2Fleetfetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31269179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T06:57:45.811Z","status":"ssl_error","status_checked_at":"2026-04-01T06:57:42.389Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-27T13:00:30.249Z","updated_at":"2026-04-01T07:00:44.405Z","avatar_url":"https://github.com/Rage997.png","language":"Python","funding_links":[],"categories":["\u003ca name=\"online\"\u003e\u003c/a\u003eOnline search and resources"],"sub_categories":[],"readme":"# leetfetch\n\n**leetfetch** is a command-line Python tool to fetch and organize all your LeetCode submissions and problem descriptions locally.\n\n## Features\n\n- Fetches all submissions using browser session cookies (no password or API token required)\n- Filters to include only accepted submissions (default) or all submissions\n- Groups submissions by problem and programming language\n- Supports all LeetCode languages (e.g., Python, C++, Java, etc.)\n- Allows downloading only specific languages with `--languages`, or all with `--all-languages`\n- Creates a Markdown README index with problem links, difficulty, and summary\n- Sync mode to only download newly solved problems\n\n## Requirements\n\n- Python 3\n- Must be logged into LeetCode in your selected browser (for cookie access)\n- Supported browsers: Chrome, Firefox, Brave, Edge, Opera\n\n## Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/Rage997/leetfetch.git\ncd leetfetch\n```\n\nInstall required Python packages:\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\n```bash\npython3 main.py [options]\n```\n\n### Options:\n\n- `--browser chrome|firefox|brave|edge|opera` (default: chrome)\n- `--output \u003cpath\u003e` (default: `leetcode`)\n- `--sync` → Only download new problems\n- `--only-accepted/--no-only-accepted` → Include only accepted submissions (default: True)\n- `--languages lang1 lang2` → List of languages to include (default: python3)\n- `--all-languages` → Include all supported languages\n\n### Examples:\n\n```bash\n# Download all accepted Python3 submissions using Chrome cookies\npython3 main.py --languages python3\n\n# Download all submissions in all languages using Firefox\npython3 main.py --no-only-accepted --browser firefox --all-languages\n\n# Sync and download only newly accepted C++ and Python submissions\npython3 main.py --sync --languages cpp python3\n```\n\n## Output Structure\n\n```\nleetcode/\n├── problem-1/\n│   ├── README.md\n│   ├── solutiontemplate.py\n│   └── submissions/\n│       └── python3/\n│           └── 123456789_Accepted.py\n├── problem-2/\n│   └── ...\n└── README.md  # Summary index\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRage997%2Fleetfetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRage997%2Fleetfetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRage997%2Fleetfetch/lists"}