python requests no certificate example

42

import requests
import urllib3

# supress the insecure request warning output
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

url = "https://api.agify.io?name=bella"

# set verify option to False
response = requests.request("GET", url, headers=headers, verify=False)

print(response.text)

Comments

Submit
0 Comments