<< < 1 2 3 4 5 6 > >>   Sort: Rank

'urllib' Module - Internet Communication
Where to find tutorials on Python "urllib" Module? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Python "urllib" Module. What Is Python Module 'urllib' Sending an HTTP Request with 'urllib.request' http.client.HTTPResponse Objects HTTP POST w...
2018-09-24, 1276🔥, 0💬

Using urllib.parse.urlencode()
How to use urllib.parse.urlencode() function to encode HTTP POST data? My form data has special characters. If your form data has spaces, equal signs, and other special characters, you need to call urllib.parse.urlencode() to encode it before passing it to the urlopen() function. The urlencode() fun...
2018-09-13, 5388🔥, 0💬

Using urllib.request.Request Object
How to use the urllib.request.Request object to build more complex HTTP request? The urllib.request.urlopen() function can take a urllib.request.Request object to let you building more complex HTTP requests. You can use the Request() constructor to build a Request object: q = urllib.request.Request(...
2018-09-13, 4703🔥, 0💬

HTTP POST with urllib.request
How to send an HTTP POST request with urllib.request? I want to submit a form to a Website. To submit a form to a Website, you can use the urllib.request.urlopen() function with two arguments: r = urllib.request.urlopen(url, data) where: url can be a URL string or Request object data is request body...
2018-09-13, 2300🔥, 0💬

urllib.request.Request Properties and Functions
What properties and functions are supported on urllib.request.Request objects? urllib.request.Request objects support the following properties and functions: &gt;&gt;&gt; q = urllib.request.Request(url) host # represents the host name of the url. type # represents the internet protocol t...
2018-09-13, 1978🔥, 0💬

Installing 'requests' Module
How to install "requests" module? I am getting the "ModuleNotFoundError: No module named 'requests'" error. If you are getting the following error when running "import requests", you need to follow this tutorial to install the "requests" module. C:\fyicenter&gt;python Python 3.6.2 (v3.6.2:5fd33b...
2018-09-01, 2041🔥, 0💬

What Is Python Module 'requests'
What Is Python module "requests"? "requests" is a Python external module that allows you to send organic, grass-fed HTTP/1.1 requests, without the need for manual labor. There’s no need to manually add query strings to your URLs, or to form-encode your POST data. Main features of "requests" module: ...
2018-09-01, 1692🔥, 0💬

'requests' Module - HTTP for Humans
Where to find tutorials on Python "requests" Module? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Python "requests" Module. What Is Python Module 'requests' Installing 'requests' Module Sending an HTTP Request with 'requests' requests.models...
2018-09-01, 1666🔥, 0💬

Sending an HTTP Request with 'requests'
How to send an HTTP request? I have the "requests" module installed now. The "requests" module provides 6 static functions to support 6 HTTP request types: &gt;&gt;&gt; r = requests.get(url) &gt;&gt;&gt; r = requests.post(url, data = {'key':'value'}) &gt;&gt;&gt; ...
2018-09-01, 1527🔥, 0💬

Sending an HTTP POST Request
How to send an HTTP POST request? I want to submit a form to a Website. To submit a form to a Website, you can use the requests.post() function: &gt;&gt;&gt; r = requests.post(url, data = {'key':'value'}) The second argument 'data' is a 'dict' object contains of the list of form field na...
2018-08-14, 2191🔥, 0💬

Accessing the HTTP Request Object
How to access the HTTP request from the HTTP response object? I want to see what was actually delivered to the server. To see what was actually delivered to the server, you can take the "request" property of the response object: &gt;&gt;&gt; r = requests.post() &gt;&gt;&gt; q...
2018-08-14, 1332🔥, 0💬

'for ... in' Statement with List of Tuples
How to use "for ... in" statements with a list of tuples in Python code? Usually, "for ... in" statements are used with simple lists. But you can also use a "for ... in" statement with a list of tuples. In this case, you can put multiple looping variables inside the loop item: for (v1, v2, ... ) in ...
2018-08-14, 1628🔥, 0💬

'@...' Function Decorators
What are function decorators in Python? A function decorator is shorthand notation to replace a function with a new version transformed by a wrapper function. A function decorator can be specified using the following syntax: @decorator_wrapper_function def func(): ... Above Python code is actually e...
2018-05-08, 1984🔥, 0💬

Defining and Using Class for New Data Types
Where to find tutorials on Defining and Using Class for New Data Types in Python? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Defining and Using Class for New Data Types in Python: What Is Class 'class' - Class Definition Statements Classes...
2018-05-08, 1509🔥, 0💬

What Is Class
What Is Class in Python? A class in Python is a statement block that defines a new data type. A class can have the following elements: Class name - A symbolic name that uniquely identifies this class within the context. The class name is also the new data type name. Base class - An existing class fr...
2018-05-08, 1429🔥, 0💬

'class' - Class Definition Statements
How to use the "class" statement to define a new function in Python? You can use the "class" statement to define a new class in Python with the following syntax: def class_name(base_class): class properties assignment statement ... method definition statement ... Here is a good example of "class" st...
2018-05-08, 1317🔥, 0💬

Classes Are Objects Too
Are classes objects in Python? Yes, all classes are objects of "type" type in Python? You can verify this with the following Python code: &gt;&gt;&gt; class x: ... pass ... &gt;&gt;&gt; type(x) &lt;class 'type'&gt; In other words, the "class x" statement block perform...
2018-05-08, 1189🔥, 0💬

Download Latest Version of Python for Windows
How to download the latest version of Python on my Windows computer? You can follow this tutorial to download the latest version of Python on your Windows computer: 1. Go to Python download Website . 2. Click the "Download Python 3.6.2" button. You see the download file save prompt. 3. Save the down...
2018-04-12, 1877🔥, 0💬

What Is Python Interactive Mode
What Is Python Interactive Mode? Python Interactive Mode allows you to use Python as an interpreted language. When running in interactive mode, Python will: Prompt you to enter one statement or statement block at a time. Execute the statement or statement block immediately. Print back the result if ...
2018-04-12, 1646🔥, 0💬

Verify Python Installation on Windows
How to verify the Python installation on my Windows computer? You can follow this tutorial to verify the Python installation on your Windows computer: 1. Search Python with the Start button - Enter "Python" in the search box after clicking the "Start" button. If the "Python" is displayed in the sear...
2018-04-12, 1551🔥, 0💬

Using Python in Interactive Mode
Where to find tutorials on using Python in Interactive Mode? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on using Python in Interactive Mode: What Is Python Interactive Mode Start Python in Interactive Mode help() - Getting Help in Python Inte...
2018-04-12, 1356🔥, 0💬

Install Latest Version of Python for Windows
How to install the latest version of Python on my Windows computer? I have the Python for Windows file downloaded. If you have the latest version of Python for Windows downloaded, you can follow this tutorial to install it: 1. Double click the Python download file, for example \fyicenter\python-3.6....
2018-04-12, 1354🔥, 0💬

'str' Literals and Conversions
How to specify "str" values in Python code? "str" values can be specified using "str" literals or the str() conversion function as shown in this tutorial: 1. "str" literals in double quotes as shown below: &gt;&gt;&gt; "FYIcenter.com" 'FYIcenter.com' &gt;&gt;&gt; "He says: \"...
2018-04-07, 1298🔥, 0💬

'list' Literals and Conversions
How to specify "list" values in Python code? "list" values can be specified using "list" literals or the list() conversion function as shown in this tutorial: 1. "list" literals in [v1, v2, ...] format as shown below: &gt;&gt;&gt; ["Age", 25] ['Age', 25] &gt;&gt;&gt; ["Age", ...
2018-04-07, 1278🔥, 0💬

<< < 1 2 3 4 5 6 > >>   Sort: Rank