Working with zip files in Python

Note: This article has also featured on geeksforgeeks.com .

This article explains how one can perform various operations on a zip file using a simple python program.

What is a zip file?fzip_as3

ZIP is an archive file format that supports lossless data compression. By lossless compression, we mean that the compression algorithm allows the original data to be perfectly reconstructed from the compressed data. So, a ZIP file is a single file containing one or more compressed files, offering an ideal way to make large files smaller and keep related files together.

Why do we need zip files?
Read More »

Working with CSV files in Python

Note: This article has also featured on geeksforgeeks.com .

This article explains how to load and parse a CSV file in Python.

First of all, what is a CSV ?csv

CSV (Comma Separated Values) is a simple file format used to store tabular data, such as a spreadsheet or database. A CSV file stores tabular data (numbers and text) in plain text. Each line of the file is a data record. Each record consists of one or more fields, separated by commas. The use of the comma as a field separator is the source of the name for this file format.
Read More »

Implementing Web Scraping in Python with Beautiful Soup

Note: This article has also featured on geeksforgeeks.com .

There are mainly two ways to extract data from a website:

  • Use the API of the website (if it exists). For example, facebook has the Facebook Graph API which allows retrieval of data posted on facebook.
  • Access the HTML of the webpage and extract useful information/data from it. This technique is called web scraping or web harvesting or web data extraction.

This article discusses the steps involved in web scraping using Python.Read More »