dongzhaorui 3 năm trước cách đây
mục cha
commit
2611b9e19b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      find_source/crawler/utils.py

+ 2 - 2
find_source/crawler/utils.py

@@ -14,10 +14,10 @@ def err_details(worker):
     return worker
 
 
-def extract_base_url(url):
+def extract_host(url):
     """
 
-    # >>> base_url = extract_base_url('http://192.168.3.207:8080/')
+    # >>> base_url = extract_host('http://192.168.3.207:8080/')
     """
     _s, _h, _p = get_host(url)
     return f"{_s}://{_h}/" if _p is None else f"{_s}://{_h}:{_p}/"