python獲取遠程頁面內容,避免卡死問題 Posted on 2018-07-31 範例: import urllib2 import time print time.time() try: url = "http://localhost/test.php" f = urllib2.urlopen(url, timeout=5) print f.readlines() except Exception, e: print e print time.time()
python ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the ‘ssl’ module is compiled with LibreSSL 2.8.3 19 6 月, 2023