可以用来监控网站情况的….
1 2 3 4 5 6 7 |
#!/usr/bin/env python # coding=utf-8 import urllib2 response=urllib2.urlopen('http://www.503error.com') print response.getcode() |
Latest posts by Zhiming Zhang (see all)
- aws eks node 自动化扩展工具 Karpenter - 8月 10, 2022
- ReplicationController and ReplicaSet in Kubernetes - 12月 20, 2021
- public key fingerprint - 5月 27, 2021