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…
Category: Python
How to create a temporary file to store data
Your application has to write data out in a temporary file to reprocess them before rendering to users. The file will be created temporarily and swept our when the application…
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.…
How to find the mime type of a file in Python
A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) is a standard that indicates the nature and format of a document, file, or assortment of bytes. It is defined…
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…
How to use urllib in Python
[dropcap]T[/dropcap]oday, with the development of the internet, network programming to exchange packets is no longer as complicated as it was a few decades ago. Python is no exception when it…
How to loop a dictionary in Python
Dictionary is one of the most widely used data structures in programming, especially with Python. To understand how to loop on it, extract its keys as well as retrieve all…
Using Feedparser in Python to read RSS
In this post, we will take a closer look at how to fetch and parse syndicated feeds with Feedparser library in Python. The detailed documentation of this library can be…
Running a simple http server
In the world of web engineering and development, developing web-based applications always need a web application server where all web pages are accommodated. Depending on what web technology as well…
