This repository contains a collection of scripts and examples for web automation using Selenium with Python. The scripts demonstrate how to automate various tasks on websites, including form filling, button clicking, data scraping, and more.
- Automated web browsing
- Form filling
- Button clicking
- Data scraping
- Element interaction
- Python 3.x
- Selenium
To get started with Selenium Python automation, follow these steps:
- Clone the repository:
git clone https://github.com/Mgobeaalcoba/selenium_python.git
cd selenium_python
- Install the required dependencies:
pip install selenium
- Download the appropriate WebDriver for your browser:
- Chrome: ChromeDriver
- Firefox: GeckoDriver
- Safari: SafariDriver
- Update the path to the WebDriver in the scripts:
# Example for ChromeDriver
webdriver_path = "/path/to/chromedriver"
- Run the desired scripts:
python script_name.py
The project structure follows a basic layout for Selenium Python automation:
- script_name.py: Individual script for a specific task.
- utils.py: Utility functions for common actions.
- drivers/: Directory to store WebDriver executables.
Contributions to this Selenium Python automation project are always welcome. Here are a few ways you can help:
- Report bugs and issues
- Suggest new scripts and features
- Improve existing scripts and examples
- Fix bugs and submit pull requests
Please make sure to follow the existing code style and conventions when making contributions.
This project is licensed under the MIT License.