-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Comments
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" import gdown |
Thanks. I wonder if this logic could somehow be imported into gdown to make
it even more resilient?
…On Mon, 5 Sept 2022 at 17:49, ystong524 ***@***.***> wrote:
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)
—
Reply to this email directly, view it on GitHub
<#209 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV5MAFNITVCVBSOENQ7EMTV4YCATANCNFSM553YQENA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@DarrenPIngram It is working for me. Can you double-check?
|
Sorry for the delay. Other gdown links work, but this one for example
grumbled with gdown, gdown --fuzzy and even gdown --folder as checks.
https://drive.google.com/file/d/1nbdVPtrHLSjSTPuEVCGP028BIy5CfLhJ/view?usp=sharing
It worked via the web however, so I do not know why gdown cannot get access
to that one!
…On Tue, 20 Sept 2022 at 17:28, Kentaro Wada ***@***.***> wrote:
@DarrenPIngram <https://github.com/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]
—
Reply to this email directly, view it on GitHub
<#209 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV5MACANVXMNENQFTJNOFTV7HCZFANCNFSM553YQENA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@DarrenPIngram Working for me. Maybe the quotes are missing?
|
Thanks. Yes stuff works again, I wonder if Google is doing strange stuff
behind the scenes. I will monitor and report if/when I get the same issue.
…On Mon, 26 Sept 2022 at 12:12, Kentaro Wada ***@***.***> wrote:
@DarrenPIngram <https://github.com/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]
—
Reply to this email directly, view it on GitHub
<#209 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV5MAG2UZSYXU6YDJLWHTLWAFSHVANCNFSM553YQENA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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=Noneurl="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.
The text was updated successfully, but these errors were encountered: