I’m not a good coder, so every time I need some new script for automation I just copy old code from the old script. It occurs to me that I should write my script in a more reusable way to avoid constantly copy and paste . This post will give a simple example for writing… Continue reading import you own function in python
Category: python3
Read data from csv with python3
It’s common that we need to process data in csv format. We will use the csv library to read csv file. Here is a sample code for read data from csv file and print each row.
homebrew install ChromeDriver not working in M1 Mac
I was trying selenium and I have installed chromedriver using home-brew. However, I could not execute the driver(block by Apple). Here is how to solve the issue. I’m using a Mac with M1 chip thought that should be irrelevant. The error should look something like this. The solution is simple, just type the command below.… Continue reading homebrew install ChromeDriver not working in M1 Mac
Let your python script take command line argument with Argparse
Sometime in your life you might want your script to be able to accept command line argument as input. This post will teach you the most basic usage of Argparse library. I only touch surface of this library if you would like to know more detail usage read docs.python.org for further instructions. Installation is quite… Continue reading Let your python script take command line argument with Argparse