Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ssl
- import urllib.request
- # Create an SSL context that does not verify certificates
- context = ssl._create_unverified_context()
- # Use this context with urlopen
- flipkart_url = "https://www.flipkart.com"
- response = urllib.request.urlopen(flipkart_url, context=context)
- html = response.read()
- print(html)
Advertisement
Add Comment
Please, Sign In to add comment