摘要: def ConnectTest(url): try: response = requests.get(url) return response.status_code except requests.exceptions.ConnectionError: ... 阅读全文
posted @ 2014-04-26 23:14 r3call 阅读(323) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# coding:utf-8import reimport urlparse# 解析urldef ParseUrl(url): if not re.search(r"^http[s]?://",url): if ":443" in url: ... 阅读全文
posted @ 2014-04-26 23:00 r3call 阅读(187) 评论(0) 推荐(0) 编辑