{"id":20895389,"url":"https://github.com/gopikrsmscs/leet-classifier","last_synced_at":"2026-05-25T15:03:19.073Z","repository":{"id":202668070,"uuid":"706781901","full_name":"gopikrsmscs/leet-classifier","owner":"gopikrsmscs","description":"A open source tool designed to organize solved LeetCode problems into logical folders by tags, making it easy to revisit and maintain your coding achievements.","archived":false,"fork":false,"pushed_at":"2024-02-08T23:18:24.000Z","size":1215,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T12:16:12.901Z","etag":null,"topics":["leetcode","leetcode-solutions","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gopikrsmscs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-10-18T15:51:18.000Z","updated_at":"2024-06-11T14:35:47.000Z","dependencies_parsed_at":"2024-02-08T22:33:24.339Z","dependency_job_id":"20b61355-ca33-46a5-8317-bfc2b4fe1f6f","html_url":"https://github.com/gopikrsmscs/leet-classifier","commit_stats":null,"previous_names":["gopikrsmscs/leetcode-tag","pavulurig/leet-classifier","gopikrsmscs/leet-classifier"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopikrsmscs%2Fleet-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopikrsmscs%2Fleet-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopikrsmscs%2Fleet-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gopikrsmscs%2Fleet-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gopikrsmscs","download_url":"https://codeload.github.com/gopikrsmscs/leet-classifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243279813,"owners_count":20265895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["leetcode","leetcode-solutions","python","python3"],"created_at":"2024-11-18T10:28:41.677Z","updated_at":"2025-12-25T15:40:41.734Z","avatar_url":"https://github.com/gopikrsmscs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leet-Classifier\n\n\n**Leet-Classifier** is a Python-based open-source tool designed to streamline the process of classifying and organizing your LeetCode submissions. It extracts essential metadata from comments, such as tags (in the format of lct:tag1,tag2;) and difficulty tags (lct:E1;), from your most recent LeetCode submissions. With this information, Leet-Classifier intelligently classifies your submissions into well-structured folders on your local system. This will help you review the solved problems for interviews and identify patterns.\n\n[![Watch the video](assets/thumbnail.png)](https://www.youtube.com/watch?v=PVE1WS58slA \"How to Use Leet Classifier || Leetcode || Interview\")\n\n\n## Prerequisites\n\nBefore you get started with **Leet-Classifier**, ensure you have the following prerequisites:\n\n- Python 3.x installed on your system.\n\n## Get Started\n\nYou can clone the repository to your local machine and set up the project using the following commands:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/gopikrsmscs/leet-classifier.git\n```\n2. Change the working directory to the project folder:\n\n```bash\ncd leet-classifier\n```\n3. To use leet-classifier, you need to configure it with your LeetCode cookie. Here's how you can do it:\nInside cookie.json, add your LeetCode cookie as follows:\n```json\n{\n    \"Cookie\": \"your_leetcode_cookie_here\"\n}\n```\nEnsure that you replace \"your_leetcode_cookie_here\" with your actual LeetCode cookie. You can obtain your LeetCode cookie by inspecting your browser's developer tools while logged in to LeetCode.\n\n## Usage\nTo make use of the Leet-Classifier, add tags anywhere in the code as comments before making submissions to LeetCode. Below are examples of supported tags:\n\n### Supported Tags\n- **Problem Tag (lct)**: Write in comments anywhere in the code, starting with lct and ending with a semicolon (;).\n    ``` bash\n    lct:tag1,tag2; \n    lct:tag1;\n    ```\n- **Difficulty Tag (lcd)**: Write in comments anywhere in the code, starting with lcd and ending with a semicolon (;). The lcd field is not mandatory. \n    ``` bash\n    lcd:e1; \n    lcd:e2; \n    lcd:m1; \n    lcd:h1;\n    ```\n### Example Usage\n![Alt text for image 1](assets/python_example.png \"Python Example\")\n\n![Alt text for image 3](assets/cpp_example.png \"C++ Example\")\n\n![Alt text for image 4](assets/mysql_example.png \"Mysql Example\")\n### Running the Script\nThe script accepts an optional argument, limit, which specifies the number of recent submissions to fetch. If limit is not provided, the script defaults to processing only the most recent submission.\n\nTo run the script without specifying a limit (defaults to 1):\n```bash\n    python3 leet_classifier.py\n```\n\n\nTo run the script with a specified limit (e.g., 10):\n```bash\npython3 leet_classifier.py 10\n```\n\nThis command fetches the last 1 or 10 submissions from LeetCode, filtering them based on their acceptance status. It then organizes the accepted submissions into logically named directories as illustrated below:\n\n![Alt text for image 1](assets/results.png \"Output Example\")\n\n### Supported Languages\n\nAs of now, the repository supports the following programming languages:\n```bash\nJava, Python, JavaScript, C++, C, C#, MySQL\n```\nWe plan to extend support to additional languages in the near future.\n\n## Contributing\nWe welcome contributions to make this project even better. If you have suggestions, bug reports, or feature requests, please follow these steps:\n\nOpen an issue to discuss your ideas or report a problem.\nCreate a pull request if you'd like to contribute code improvements.\nYour contributions will help the leet-classifier to enhance experience.\n\n## Acknowledgments\nIf you find this project useful, please consider giving it a star. Your support encourages further development and helps other leetcode entuasists discover this tool.\n\n## License\nThis project is licensed under the MIT License. For more details, please refer to the LICENSE file in this repository.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopikrsmscs%2Fleet-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgopikrsmscs%2Fleet-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgopikrsmscs%2Fleet-classifier/lists"}