Loading, please wait...

A to Z Full Forms and Acronyms

What is Python Automation?

Jun 27, 2020 Python, PythonAutomation, 4660 Views
Full-fledged explanation of python automation

What is python automation?

Automation general meaning is using or manufacturing automatic equipment for utilization. Co-relate this general meaning in the python automation. Python automation means we create or develop an application that barely needs any human assistance.

In python, we can simply write python scripts that perform a task repetitively without involving the human directions. For example, if we want to pay one music, again and again, we just need to write a script, insert the video’s link, and just clicking run. We can play music repeatedly. The benefit of automation is that workload on humans is reduced as all the instructions are already preloaded in the scripts.

How Python is helpful in automation?

Python supports a vast number of features. Apart from features like less code, platform independencies, pre-built libraries, and ease of learning. It supports extensive features such as:

  • It has numerous tools that other languages. It is one of the most compatible languages with their corresponding languages.
  • It is a scripting language that is an advantage for creating any automatic application.
  • It reduces the complexity of the performing task. It is possible because of inbuilt libraries in python.

Steps to create an application:

  • Before writing code, open the PyCharm install selenium and a supported web driver for your browser.
  • Once the installation is done, create python file and paste the following code.
from selenium import webdriver


class Music:
    def __init__(self):
        self.driver = webdriver.Chrome()

    def play(self):
        print("Playing youtube video")
        self.driver.get("https://www.youtube.com/user/aTastyNasty/videos")

        new = self.driver.find_element_by_xpath('//*[@id="img"]')
        new.click()


bot = Music
bot.play(self)
  • Click on run and here the link you have pasted in the new variable will play.

 

This is just a small example that helps you to understand what is automation in depth. You can create numerous automation. Some of the few ideas/illustration in which you can create automation and practice your knowledge.

  • Automatic mouse moving/scrolling so that you can always visible to your angry boss. It sometimes might happen that you are reading some important information and that information took so much time. So, you were showing inactive and you have no idea about that. Your boss became very angry when she saw your status inactive. Implement this idea as it is very helpful in your professional life.
  • Automatic website login. It means there is no need to enter the id and password every time when you want to jump inside your website work. It becomes very easy just a click and you are in.
  • You can also script your youtube video which you want to see repeatedly.
A to Z Full Forms and Acronyms

Related Article