Closed DarrenPIngram closed 1 year ago
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)
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 https://github.com/wkentaro/gdown/issues/209#issuecomment-1237156835, 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?
% 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]
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 https://github.com/wkentaro/gdown/issues/209#issuecomment-1252438591, 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?
% 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]
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 https://github.com/wkentaro/gdown/issues/209#issuecomment-1257732830, 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=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.