How to remove duplicates from a list in Python

In Python, a list is a versatile collection of objects that allows for duplicates.  But sometimes it is necessary to make the list unique to streamline our data or perform…

How to ignore top rows in CSV or TSV files

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…

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…

Download Files in Python using the urllib Module

In the former posts, we have shared the methods to download files from the web using the requests or wget module. As we know, they are external modules which we…

Downloading Files in Python Using wget Module

In a recent post about downloading files in Python, we have learned how to use the requests module to check downloadable resources and restrict some measures to grab remote files.…

Downloading Files In Python Using Requests Module

This post aims to present you how to download a resource from the given URL using the requests module. Of course, there are other modules which allow you to accomplish…

Create and manage virtual environments in Python

[dropcap]I[/dropcap]n this writing, I aim to present concisely how to create and manage virtual environments in Python. You can go further by getting through official documentation from the Python website.…

Read and write with file CSV in Python

[dropcap]I[/dropcap]t is possible to read and write CSV (comma separated values) files using Python 2.4 Distribution. Like most languages, file operations can be done with Python. Writing a CSV file with Python can be…