How to create GitHub repository using Python Selenium?
Selenium is a powerful tool for controlling web browsers through programs and performing browser automation. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc, we will be working with Python. Selenium Tutorial covers all topics such as – WebDriver, WebElement, Unit Testing with selenium. This Python Selenium Tutorial covers Selenium from basics to advanced and professional uses.
In this article, we will write a python script that will create a GitHub repository using selenium in Python
Steps for creating a GitHub repository:
- Before creating a repository, we need to login first (Require username and password).
- After Login, we will go for creating a new repository, and then we require the repository name.
- After this, three things are left; descriptions, mode(Private or Public), and readme file.
Step 1: Import module and create Chrome Object
Step 2: Create github_repo() with the following arguments to access user GitHub with suitable parameters and perform required tasks.
Step 3: Call the above function with suitable parameters in the driver code to create a GitHub repository.
Below is the Implementation:
Please Login to comment...