小编Udi*_*khi的帖子

下载期间出错:“NoneType”对象没有属性“groups”

我无法从我的谷歌驱动器下载音频文件。

import gdown

drive_link = 'https://drive.google.com/uc?id=1X13DtRGrF2gFVYL_2bVZ9OtiuSQGnl'
file_id = drive_link.split('=')[1]  
output_path = f"/Users/Udita/Desktop/AudioFiles/downloaded_file.ext"

try:
    gdown.download(drive_link, output_path, fuzzy=True)
    print("File downloaded successfully with fuzzy option.")

except Exception as e:
    print(f"Error during download: {e}")
Run Code Online (Sandbox Code Playgroud)

python gdown

3
推荐指数
1
解决办法
2199
查看次数

标签 统计

gdown ×1

python ×1