rabin 5 年之前
父节点
当前提交
e75285aa45
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      demeter/core.py

+ 1 - 0
demeter/core.py

@@ -394,6 +394,7 @@ class Demeter(object):
 	@classmethod
 	@classmethod
 	def curl(self, url = '', param={}, method = 'get', timeout=5, max=2):
 	def curl(self, url = '', param={}, method = 'get', timeout=5, max=2):
 		import requests
 		import requests
+		from requests.adapters import HTTPAdapter
 		try:
 		try:
 			s = requests.Session()
 			s = requests.Session()
 			s.mount('http://', HTTPAdapter(max_retries=max))
 			s.mount('http://', HTTPAdapter(max_retries=max))