Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Drive raw data?

Is there any URL google has that contains the raw data for the file? using https://drive.google.com/file/d/FILE_ID just takes you to a 'share' section of the file... say I have a .js file on GDrive. If you go to their share link, they have a share page. Is there any link to get the raw javascript from the file, as to use in a <script src="google_link_or_whatever">?

like image 380
parzivail Avatar asked Jul 18 '14 22:07

parzivail


People also ask

How do I open RAW files in Google Drive?

On the folder with your intended file (e.g. FILE. css), hit Sharing Settings, then Advanced, then select "Public on the web - Anyone on the Internet can find and view." In the URL bar (or share link), copy everything after the drive.google.com/drive/u/0/folders/

What is RAW data file?

A RAW file is the uncompressed and unprocessed image data captured by a digital camera or scanner's sensors. Shooting in RAW captures a high level of image detail, with large file sizes and lossless quality.


1 Answers

First, go to the sharing settings for your document and choose "Anyone with a link." It will generate a link in the format https://drive.google.com/file/d/XXX/view?usp=sharing.

Now you can use the following URL format: https://drive.google.com/uc?id=XXX

Note that I'm seeing an HTTP redirect when I do this, so use curl -L on the command line or otherwise make sure that your HTTP client follows redirect.

like image 200
a paid nerd Avatar answered Oct 02 '22 16:10

a paid nerd