Automatically upload Leetcode problems and your solutions to your GitHub repository and update an Excel sheet with the GitHub file link.
- Click on
LeetcodeAutomator_installer.exe. - Click on
Download iconand download it.
- Click on
code - Copy the web URL
- Open Gitbash on any folder you want to clone the repository in and paste
git clone {url you copied} .Do quick steps, give github repo folder location to download the app and Leetcode Automator will be installed.
- Click on
Setup Git and Github Repositories. Then wait for a few seconds (some dependencies need to be installed) - Enter your
github username(example: mine is ahsanashraf148). - Enter the desired repository name.
- Enter your Github Token
- Create a new folder for your code files and enter its path.
- Click on
Create and Push Repo.
- Go back to the main window.
- Click on
Upload Problem To Github. - Enter the
Problem name. - Select
Difficulty Level. - Enter the
problem codeand itsexplanation. - Click
Submit.
Congratulations! The problem file has been created in the specified folder, uploaded to GitHub, and its details appended to problems.xlsx.
- Python must be installed.
- Log in to GitHub: Open your web browser and log in to your GitHub account.
- Access Settings: Click on your profile picture, then select
Settings. - Developer Settings: Scroll down and click on "Developer settings".
- Personal Access Tokens: Click on "Personal access tokens".
- Generate New Token: Click on "Generate new token".
- Token Description: Enter a description for your token.
- Select Scopes: Choose the necessary scopes under the "repo" category.
- Generate Token: Click "Generate token" at the bottom.
- Copy Your New Token: Copy your new token immediately. You won’t be able to see it again!
Important: Treat your token as a password. Keep it secure and do not share it.






