简体   繁体   English

使用GNU Octave从Google驱动器中获取文件

[英]Fetch file from Google drive with GNU Octave

Here's a link to a shared file: 这是共享文件的链接:

https://drive.google.com/open?id=0B84DlMErV9QYSFVYbEluMXQ4VlE

How can the rar file behind be fetched and stored locally with GNU Octave commands? 如何使用GNU Octave命令将后面的rar文件提取并本地存储? urlwrite() would not make it, as it downloads an html file. urlwrite()无法下载,因为它会下载html文件。 ftp connections are not allowed in Google drive. Google驱动器中不允许ftp连接。

Use Google Drive Direct Link Generator and then urlwrite: 使用Google云端硬盘直接链接生成器 ,然后urlwrite:

urlwrite ("https://drive.google.com/uc?export=download&id=0B84DlMErV9QYSFVYbEluMXQ4VlE", "foobar.rar")

Or use regexprep to change the URL (the format should be obvious) 或使用regexprep更改URL(格式应显而易见)

See also SO question howto use google drive because this is question is mostly howto get a direct link and not really Octave related. 另请参阅“ 如何使用Google驱动器”的问题,因为这主要是如何获得直接链接的问题,而与Octave无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM