Skip to content

Automation bases for a wide range of tasks and interactions using Python

License

Notifications You must be signed in to change notification settings

dbeniamin/Automation-with-Python

Repository files navigation

Automation-with-Python

This project contains my personal take and some solutions i found around and put together for various Automation Tasks using Python.

Introduction:

This is designed to help you enhance your Python skills and provide examples for each situation that can be automate. Whether you are a beginner looking to build a few automation scripts or an experienced developer aiming to refresh your Python knowledge, this is tailored for everyone.

Key Features:

  • Diverse Automation Coding Examples and Challenges: Explore a wide range of Python programming concepts that help automate tasks.
  • Real-world Applications: Apply your Python skills to real-world scenarios, use the presented ideas.
  • Flexibility and Adaptability: Tailor the coding examples to your specific interests and goals.

Project Structure:

  • Task specific folders. These contain the task to be automated and including any prerequisite files.
  • task_specific.py files. These contain the examples used for automating various tasks. The files may contain several approaches to solve the same issue. Feel free to chose the one you like.

Requirements:

Please make sure that the required libraries, frameworks and sometimes the example files are installed and available in the root directory for proper project functionality.

Installation:

  1. Fork this repository:

    Click on the "Fork" button at the top-right of this page to create your own copy of these Selenium automation scripts.

  2. Clone your forked repository:

    Copy and run the desired files or project folders.

Usage:

Task specific folders and task_specific.py files.

To use the files you are interested in:

  1. Copy the content of "Task specific folder".
  2. Paste the content into a new Python file (e.g., your_file.py) in case the flow does not require any perquisite files.
  3. Save the file look over, read the comments, modify, adapt and run it.

Feel free to modify and adapt the files based on your specific requirements.

Description:

Task specific folder : contains all the files required to achieve the automation process referred in the name of the folder. task_specific.py : contains comments and sometimes multiple solutions to the specific task.

Change Log:

12.09.2024 - 01_parse_data - Data parsing with python for various files

  • Examples of scripts to parse data to .csv, .txt, .xml, .JSON.
  • Can be used to scale up the usage for large files and manipulate data as desired.

16.09.2024 - 00_file_manipulation.py - File manipulation using Python

  • Contains several examples of file manipulation using Python.
  • Can be extended to folders not only files.

17.09.2024 - 02_extract_data_regex.py - Search, find and extract data using regex

  • Using re library search, find and extract data from a data set using regex expression.

19.09.2024 - 03_input_validation.py - Input validation script

  • Validate what type of data input is allowed from the user to avoid various input generated errors.

23.09.2024 - 04_error_handling.py - Error handling script example.

  • How to handle several errors that might be introduced in the code in order to pass and report them without stopping the script from running.

24.09.2024 - 05_web_scraping.py - Web Scraping for data with python.

  • Base demonstration of Web Scraping using requests and BeautifulSoup.
  • Provides a base example on how to scrape several pages at once.

25.09.2024 - 06_web_automation_selenium.py - Automated testing for a Web Page using Selenium and Python.

  • Base demonstration of Web page Automation testing using Selenium.
  • Provides a few interaction examples for web automation.

26.09.2024 - 07_selenium_drag&drop.py - Automated testing for draggable elements using Selenium and Python.

  • Base demonstration of Web page Automation testing using Selenium for draggable items.

30.09.2024 - 08_selenium_wait.py - Introduction of wait times in to python scripts.

  • Introduction of wait methods in python scripts using time module.
  • Main reason is to simulate real life interactions that do not occur right after each other in a few split seconds.

01.10.2024 - 09_api_handling.py - Introduction of API handling.

  • Uses requests module to call an API.
  • Extract and arrange data returned by the API.

Contributing:

Contributions are welcome! Feel free to contribute to the 100 Days of Code Challenge project.

If you have suggestions, ideas, or improvements, please don't hesitate.

Thank you for considering contributing!

License

MIT License

About

Automation bases for a wide range of tasks and interactions using Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages