Send GET Request using Python

urllib.request library

from urllib import request

response = request.urlopen('https://httpbin.org/get')
content = response.read().decode('utf-8')

print(content)

Leave a Comment

Cancel reply

Your email address will not be published.