Python Forum

Full Version: how to make this error stop ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi ! Im using requests and beautifulSoup. And i have this piece of code :
stats = requests.get(URL, verify=False).json()
But i get error :
InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x...l-warnings warnings.warn(

How do i get rid of this ?
Ok nvm i got this
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)