Python urllib Module Tutorial

Python urllib Module Tutorial

Python provides the urllib module in order to handle URL-related tasks. The URL is the short form of the Unified Resource Locators and used to address web pages or other resources uniquely. The urllib module provides the following features and functions. urllib.request is used to open and read requests. urllib.parse is used to parse URLs … Read more

“python2 -m SimpleHTTPServer” Equivalent For Python3

"python2 -m SimpleHTTPServer" Equivalent For Python3

Python2 provides the SimpleHTTPServer module to create a basic HTTP server in the specified folder. The SimpleHTTPServer module is very useful for basic operations like testing, development, learning, etc. The SimpleHTTP server provides a built-in module and there is no need for an installation. With Python3 this SimpleHTTPServer is implemented as “http.server” which is provided … Read more

Import and Use Request Module In Python

Import and Use Request Module In Python

Python requests module is used to make HTTP requests easily. It makes the HTTP requests very easy without detailed request parameters. In this tutorial, we will learn how to import the requests module and use it for HTTP requests. Install requests Module The requests module is provided via the PyPI repository and can be installed … Read more