Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not downloading yet downloads via web link #209

Closed
DarrenPIngram opened this issue Aug 8, 2022 · 6 comments
Closed

Not downloading yet downloads via web link #209

DarrenPIngram opened this issue Aug 8, 2022 · 6 comments
Labels
bug for issue status: wip-by-author Actions have to be taken by the author.

Comments

@DarrenPIngram
Copy link

Provide environment information

which python; python --version; python -m pip list | grep gdown
/usr/bin/python
Python 3.9.2

What OS are you using?

lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye

Describe the Bug

gdown does not download files stored but the link works and lets you download with web view. Have tried --fuzzy and removing the usp=sharing link to no affect. E.g.

https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7/view?usp=sharing

Last option downloads a microsmall file of no relevance.

gdown --fuzzy https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7/view?usp=sharing
zsh: no matches found: https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7/view?usp=sharing

gdown https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7/view?usp=sharing
zsh: no matches found: https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7/view?usp=sharing

gdown https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7
/home/xxx/.local/lib/python2.7/site-packages/gdown/parse_url.py:39: UserWarning: You specified a Google Drive link that is not the correct link to download a file. You might want to try --fuzzy option or the following url: https://drive.google.com/uc?id=None
url="https://drive.google.com/uc?id={}".format(file_id)
Downloading...
From: https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7
To: /home/xxx/storage/DB1-ENC/Ingest/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7
71.4kB [00:00, 1.16MB/s]

~/storage/DB1-ENC/Ingest/ gdown --fuzzy https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7
Downloading...
From: https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7
To: /home/xxx/storage/DB1-ENC/Ingest/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7
71.4kB [00:00, 1.42MB/s]

Expected Behavior

Video to download, in thie case, 906.9Mb worth. It doesn't.

To Reproduce

See above.

@DarrenPIngram DarrenPIngram added the bug for issue label Aug 8, 2022
@ystong524
Copy link

I had problem downloading zip files from links copied from browser GoogleDrive page in form "https://drive.google.com/file/d/{FILEID}/view?usp=sharing"
Then, I tried convert them to direct "download link form" to the form "https://drive.google.com/uc?export=download&id={FILEID}" and it worked
ref: https://www.howtogeek.com/747810/how-to-make-a-direct-download-link-for-google-drive-files/

import gdown
url = "https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7/view?usp=sharing"
new_url = "https://drive.google.com/uc?export=download&id=" + url.split("/")[-2]
gdown.download(new_url, "myfile.mkv"), quiet=False)

@DarrenPIngram
Copy link
Author

DarrenPIngram commented Sep 7, 2022 via email

@wkentaro
Copy link
Owner

@DarrenPIngram It is working for me. Can you double-check?

% gdown --fuzzy 'https://drive.google.com/file/d/1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7/view?usp=sharing'
Downloading...
From: https://drive.google.com/uc?id=1q-I95pr2FhnRWN_byNIKr4jY3YbZqSC7
To: /home/wkentaro/Nothing to Declare (2021).mkv
  6%|██▎                                    | 54.5M/907M [00:12<03:07, 4.54MB/s]

@wkentaro wkentaro added the status: wip-by-author Actions have to be taken by the author. label Sep 20, 2022
@DarrenPIngram
Copy link
Author

DarrenPIngram commented Sep 26, 2022 via email

@wkentaro
Copy link
Owner

@DarrenPIngram Working for me. Maybe the quotes are missing?

% gdown --fuzzy 'https://drive.google.com/file/d/1nbdVPtrHLSjSTPuEVCGP028BIy5CfLhJ/view?usp=sharing'
Downloading...
From: https://drive.google.com/uc?id=1nbdVPtrHLSjSTPuEVCGP028BIy5CfLhJ
To: /Users/wkentaro/Takeaway Titans - S01E02.mp4
  0%|                                      | 6.82M/2.37G [00:02<15:07, 2.61MB/s]

@DarrenPIngram
Copy link
Author

DarrenPIngram commented Sep 29, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug for issue status: wip-by-author Actions have to be taken by the author.
Projects
None yet
Development

No branches or pull requests

3 participants