Python is the easiest way to get server information

  • 2020-04-02 14:34:59
  • OfStack

This article illustrates the simplest way to get server information in Python. Share with you for your reference. The details are as follows:

The main core code is as follows:


sUrl = 'http://www.163.com'
sock = urllib2.urlopen(sUrl) 
sock.headers.values() 

I hope this article has helped you with your Python programming.


Related articles: