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
support Google Drive by transforming view/edit/etc URLs to download URLs #1735
Comments
What exactly is the request here? If something is shared (viewable) via a public link, you can access everything, copy it to your own Drive, use a handy download link etc. But you can't access anything that was not meant to be shared, if that was the implicated question here? |
Sorry for not being clear in my initial request. If I have a Google Drive link that is publicly shareable, gallery-dl currently cannot download it:
Adding support for that would be fairly simple (the URL transform mentioned above). |
Google Drive is too general for gallery-dl usage. I recommends: https://github.com/prasmussen/gdrive/ (required auth) This sounds like |
Thanks for the pointer to gdrive, but it seems like overkill to require
a separate program when a couple of lines in gallery-dl could do what
is needed. Also, you say gdrive requires auth, which shouldn't be
needed for the gallery-dl use-case. Also, gdrive can't auto-open the
download files in an image viewer like gallery-dl can.
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
Sometimes fanbox and patreon only post preview images, and the full version is a link to Google Drive (or Dropbox, MEGA, etc.). |
When the user is trying to view an image like this URL:
https://drive.google.com/file/d/1nxCfRCSQFjgDuc_jhlC24Y1Lrydg46zg/view
The URL can be transformed to this URL to download the image:
https://drive.google.com/uc?export=download&id=1nxCfRCSQFjgDuc_jhlC24Y1Lrydg46zg
There are some additional details when dealing with very large images or files that haven't yet been virus scanned, a confirmation parameter and temporary cookies are needed:
https://stackoverflow.com/questions/48133080/how-to-download-a-google-drive-url-via-curl-or-wget
Google Drive URLs can also contain folders, but I'm not sure how to transform those to a download URL:
https://drive.google.com/drive/folders/0By-NOo-lCyxBREtydWtzR0VvcWc
The text was updated successfully, but these errors were encountered: