|
|
@ -93,8 +93,7 @@ def download_q(url, headers, cookies, data=None, is_proxy=False, timeout=10): |
|
|
|
:return: |
|
|
|
""" |
|
|
|
|
|
|
|
proxy = "16ABDDQU:153219@u1590.20.tp.16yun.cn:6447" |
|
|
|
proxy = f"172.24.12.23:{random.randint(45001, 45100)}" # 修改代理 |
|
|
|
proxy = f"" # TOdO: 修改代理 |
|
|
|
proxies = {'http': proxy, 'https': proxy} # 代理初始化 |
|
|
|
|
|
|
|
try: |
|
|
@ -117,7 +116,7 @@ def download_q(url, headers, cookies, data=None, is_proxy=False, timeout=10): |
|
|
|
return status, response |
|
|
|
|
|
|
|
|
|
|
|
async def upload_file(file_path, content, url="http://172.18.1.113:8080/upload"): |
|
|
|
async def upload_file(file_path, content, url=""): # TODO:go-fast |
|
|
|
""" |
|
|
|
异步上传 |
|
|
|
:param file_path: |
|
|
|