Back
How to get the code of the headers through urllib?
You can use the getcode method like this:
req = urllib.urlopen('https://intellipaat.com')code = req.getcode()
req = urllib.urlopen('https://intellipaat.com')
code = req.getcode()
31k questions
32.8k answers
501 comments
693 users