+ 1

How do I make an HTTP request in python 3?

could someone send me a link to an article or tell me how to make an HTTP request in python? also, do I need to import a library and which one?

11th Sep 2018, 7:50 PM
farhad gohar
farhad gohar - avatar
2 ответов
+ 6
Can also use "requests" library http://docs.python-requests.org/en/master/user/install/#install https://www.pythonforbeginners.com/requests/using-requests-in-python
11th Sep 2018, 8:07 PM
Burey
Burey - avatar
+ 3
Importing the urllib.request library is the simplest way to accomplish this. The method you'll want to use is urlopen. See example: https://code.sololearn.com/ckWSwgv7tNlt/?ref=app
11th Sep 2018, 7:56 PM
NaN