Closed ShadowMitia closed 1 year ago
This is so relevant to me. Any news when they can fix it?
If you provide how to reproduce, probably that helps.
Try this
import gdown
gdown.download_folder("https://drive.google.com/drive/folders/1_Aqgiq7VSO2hieof5CKEOvyYMqOpr8QA")
@wkentaro
Check download_folder.py
. At 120 line seps defined as [" - ", " – "]
. But in my case it is \xa0–
strange prefix 🤔🤔
I add a print before splitted. In output i copy a dash whith spaces and change dash in sep
.
for sep in seps:
print(folder_soup.title.contents[0])
splitted = folder_soup.title.contents[0].split(sep)
After this it work.
@wkentaro, could you please release an update? The solution is above. Thanks a lot!
Provide environment information
usr/bin/python Python 3.10.6 gdown 4.5.3
What OS are you using?
Ubuntu 22.04.1 LTS
Describe the Bug
I can't download folders using either the python module or the CLI utility.
I keep getting
UnboundLocalError: local variable 'name' referenced before assignment
Trace:
Expected Behavior
Should be getting a folder from google drive. Single files work fine.
To Reproduce
Reproduced with
gdown --folder <id>
and