|
@@ -203,7 +203,8 @@ class Common:
|
|
|
|
|
|
# 下载视频
|
|
|
urllib3.disable_warnings()
|
|
|
- response = requests.get(video_url, stream=True, proxies=cls.tunnel_proxies(), verify=False)
|
|
|
+ # response = requests.get(video_url, stream=True, proxies=cls.tunnel_proxies(), verify=False)
|
|
|
+ response = requests.get(video_url, stream=True, proxies=proxies, verify=False)
|
|
|
try:
|
|
|
with open(video_path + video_name, "wb") as f:
|
|
|
for chunk in response.iter_content(chunk_size=10240):
|
|
@@ -219,7 +220,8 @@ class Common:
|
|
|
|
|
|
# 下载视频
|
|
|
urllib3.disable_warnings()
|
|
|
- response = requests.get(audio_url, stream=True, proxies=cls.tunnel_proxies(), verify=False)
|
|
|
+ # response = requests.get(audio_url, stream=True, proxies=cls.tunnel_proxies(), verify=False)
|
|
|
+ response = requests.get(audio_url, stream=True, proxies=proxies, verify=False)
|
|
|
try:
|
|
|
with open(video_path + audio_name, "wb") as f:
|
|
|
for chunk in response.iter_content(chunk_size=10240):
|