Working with CSV or TSV files, we often ought to ignore the header row (aka. the column headers) before reading the rest of the file. To strip out the first…
Category: Programming
Programming is the process of creating a set of instructions that tell a computer how to perform a task. Programming can be done using a variety of computer “languages” such as SQL, Java, Python, and C++.
How to automatically delete a Docker container after running it
Normally, a Docker container persists after it has exited. This allows you to run the container again, inspect its filesystem, and so on. However, sometimes you want to run a…
How To Check If Key Exists In Dictionary In Python
If you try to retrieve a non-existed key of a dictionary, you are gonna stuck an exception obviously. To be get safer, you should do check its existence before doing…
Scraping and downloading multiple files from web with Python
In recent posts, we have discussed some methods to scrap and download resources from the web. If you just want to download a few files, it doesn’t matter to iterate…
An introduction to Selenium with Python
https://selenium-python.readthedocs.io/index.html
Parse HTML Document using XPath with lxml in Python
As long as we find a webpage where having data of interest, we sometimes want to extract them automatically but don’t know how to do quickly. Thank to the lxml…