I m using the python program to bypass ssl certificate verification. I want to make an https request using the urllib library.
import ssl import urllib context = ssl._create_unverified_context() res= urllib.urlopen("https://infinetsoft.com", context=context) print(res)
I got this following error while running the python program
"AttributeError: module 'urllib' has no attribute 'urlopen'"
To resolve this problem, change the code to
import ssl import urllib.request as urlrq context = ssl._create_unverified_context() res= urlrq.urlopen("https://infinetsoft.com", context=context) print(res)
VIDEO GUIDE:
Post your comments / questions
Recent Article
- Fix-Gradient effect turning to gray in after effects
- How to blur an image in python?
- ModuleNotFoundError: No module named 'whois' in Python GoviralHost Without Terminal
- How to Convert Image to Pencil Sketch in Python?
- AttributeError: module 'urllib' has no attribute 'request' - Python
- How to Extract audio from video files using python?
- PermissionError: [Errno 13] Permission denied: 'shampoo_sales.csv' - Python
- [WinError 145] The directory is not empty: 'FolderPath' - Python
Related Article