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

Cannot download files from japanese server #14

Closed
Affonso-Gui opened this issue Sep 12, 2018 · 10 comments
Closed

Cannot download files from japanese server #14

Affonso-Gui opened this issue Sep 12, 2018 · 10 comments
Assignees

Comments

@Affonso-Gui
Copy link

Did not work properly when trying to download from files uploaded in a japanese-setted google drive.

Instead of the file itself, the html file was downloaded (same as wget), since there was no Download button to be pressed (only the japanese correspondent).

@Affonso-Gui
Copy link
Author

Solved by using the --id flag.

@wkentaro
Copy link
Owner

Maybe you need replace the ?open= to ?uc= in the url.

@Affonso-Gui
Copy link
Author

There was no ?open= in the url:

https://drive.google.com/a/jsk.imi.i.u-tokyo.ac.jp/uc?export=download&confirm=hMP-&id=1HmDj2XQ8sfOsbKlzw2_mqagSN2DmoFqg

@wkentaro
Copy link
Owner

I see. You are not using url like https://drive.google.com/uc?id=1HmDj2XQ8sfOsbKlzw2_mqagSN2DmoFqg.
I am willing to add that kind of url pattern, for example, https://drive.google.com/a/.*/uc?export=download&.*&id=(.*).
I opened a issue: #15

@Affonso-Gui
Copy link
Author

I'm not really sure, but that was the link google gave me when right clicking the download -> copy link address.

Both setting the --id or using the above uc?id= link solve the problem.

@wkentaro
Copy link
Owner

wkentaro commented Sep 12, 2018 via email

@wkentaro
Copy link
Owner

I created a PR to solve this problem.
With #16, you can run

gdown 'https://drive.google.com/a/jsk.imi.i.u-tokyo.ac.jp/uc?export=download&confirm=hMP-&id=1HmDj2XQ8sfOsbKlzw2_mqagSN2DmoFqg'

to download the file.

@wkentaro
Copy link
Owner

I released v3.6.0 so you can try it by sudo -H pip install --no-cache-dir -U gdown.

@Affonso-Gui
Copy link
Author

Was able to successfully download after updating! Thanks!

@wkentaro
Copy link
Owner

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants