social media video downloader

フリーミアム
よって ugoBoy | 更新済み vor 19 Stunden | Social
人気

9.8 / 10

レイテンシー

2,254ms

サービスレベル

100%

Health Check

85%

すべてのディスカッションに戻る

Hello I can't download 1080p videos from Youtube

Rapid account: Ilyoss 097
ilyoss097
vor 20 Tagen

I try all of types like 720 480.But only 1080p not work.Who can help me.

I user python.Only 1080p can’t download.

Here is my code.
async def save_video(url):
try:
chunk_size = 20 * 2 ** 20 # MB
file_name = f"media/{shortuuid.uuid()}.mp4"
f = open(file_name, ‘wb’)
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
data_to_read = True
while data_to_read:
data = bytearray()
red = 0
while red < chunk_size:
chunk = await response.content.read(chunk_size - red)
if not chunk:
data_to_read = False
break
data.extend(chunk)
red += len(chunk)
f.write(data)
f.close()
return file_name
except:
return None

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿