笨猫博客

  • 🍟首页
  • 🍘目录
    • 🥝VPS教程
    • 🍾猫玩技术
    • 🍹干货分享
    • 🍏软件分享
    • 🍩一只猫
  • 🍋工具
    • 🌽IP路由追踪
    • 🍐域名Whois查询
    • 🥘域名被墙查询
    • 🍧IP正常检测
    • 🔥IP端口检测
    • 🍆短网址
    • 🐟VIP音乐播放
    • 🍯KMS激活
  • 🍓链接
  • 🍪联系
  • 🍱登录
    • 🥦登录
    • 🍒注册
关注互联网,生活,音乐,乐此不疲的一只笨猫
  1. 首页
  2. 猫玩技术
  3. 正文

利用Heroku+Aria2离线下载并上传至OneDrive

2020-10-01 7787点热度 1人点赞 8条评论

无需服务器即可离线下载并自动上传到OneDrive

0x01首先注册Heroku账号

:https://www.heroku.com/

1.png

注册我就不说了自行注册

0x02从GitHub部署到Heroku

注册完成后打开https://github.com/moeik/Heroku_aria2

2.png

点击部署到Heroku,然后会自动迁移到Heroku直接部署

3.png

0x03 Rclone挂载OneDrive

下载Rclone:Downoad

解压打开如下:

4.png

:这里的cmd运行:

rclone config

注意:如果运行rclone config出现报错错误rclone.exe移动到C:/windows/system32文件夹下然后打开系统cmd运行命令!

就会看到:

D:\rclone-v1.51.0-windows-amd64>rclone config  //配置rclone
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n   //新建远程挂载
name> test  //名称(自定义)
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / 1Fichier
   \ "fichier"
 2 / Alias for an existing remote
   \ "alias"
 3 / Amazon Drive
   \ "amazon cloud drive"
 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
   \ "s3"
 5 / Backblaze B2
   \ "b2"
 6 / Box
   \ "box"
 7 / Cache a remote
   \ "cache"
 8 / Citrix Sharefile
   \ "sharefile"
 9 / Dropbox
   \ "dropbox"
10 / Encrypt/Decrypt a remote
   \ "crypt"
11 / FTP Connection
   \ "ftp"
12 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
13 / Google Drive
   \ "drive"
14 / Google Photos
   \ "google photos"
15 / Hubic
   \ "hubic"
16 / In memory object storage system.
   \ "memory"
17 / JottaCloud
   \ "jottacloud"
18 / Koofr
   \ "koofr"
19 / Local Disk
   \ "local"
20 / Mail.ru Cloud
   \ "mailru"
21 / Mega
   \ "mega"
22 / Microsoft Azure Blob Storage
   \ "azureblob"
23 / Microsoft OneDrive
   \ "onedrive"
24 / OpenDrive
   \ "opendrive"
25 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
26 / Pcloud
   \ "pcloud"
27 / Put.io
   \ "putio"
28 / QingCloud Object Storage
   \ "qingstor"
29 / SSH/SFTP Connection
   \ "sftp"
30 / Sugarsync
   \ "sugarsync"
31 / Transparently chunk/split large files
   \ "chunker"
32 / Union merges the contents of several remotes
   \ "union"
33 / Webdav
   \ "webdav"
34 / Yandex Disk
   \ "yandex"
35 / http Connection
   \ "http"
36 / premiumize.me
   \ "premiumizeme"
Storage>23           //选择OneDrive
** See help for onedrive backend at: https://rclone.org/onedrive/ **

Microsoft App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id>   //回车
Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret>  //回车
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n>  //回车
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n>  //回车

这时候会弹出浏览器让你登录OneDrive
这里登录你要挂载的OneDrive账号

5.png
看到这个页面就可以关闭浏览器了,回到cmd
6.png
获取成功

Choose a number from below, or type in an existing value
 1 / OneDrive Personal or Business
   \ "onedrive"
 2 / Root Sharepoint site
   \ "sharepoint"
 3 / Type in driveID
   \ "driveid"
 4 / Type in SiteID
   \ "siteid"
 5 / Search a Sharepoint site
   \ "search"
Your choice> 1 //选择你的OneDrive版本
Found 1 drives, please select the one you want to use:
0: OneDrive (business) id=xxxxxxxxxxxxxxxxxxxxxxx
Chose drive to use:>0  //这里选择0
Found drive 'root' of type 'business', URL: https://fordes-my.sharepoint.com/personal/cdm_fordes_top/Documents
Is that okay?
y) Yes (default)
n) No
y/n> y //y回车

7.png
这时候关闭cmd

Heroku配置填写

:C:\Users\Administrator\.config\rclone\rclone.conf路径不一定和我的一样,Administrator根据你自己的用户名

每一项后面添加\n,如下:
8.png

复制配置,从type = ···复制到drive_type = ···

贴到Heroku里面的RCLONE_CONFIG

9.png

最后点击部署应用程序

标签: Aria2 heroku OneDrive
最后更新:2020-10-01

笨猫

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • smallsmog

    呃,我想问一下国内如何用腾讯云搭建中转vpn,来保护自己的ip地址!谢谢

    2020-10-01
  • smallsmog

    还有,博主,注册你的账号时,没有邮箱通知了。 :huaji2:

    2020-10-01
  • smallsmog

    我的邮箱就是这个,期待你的回复,谢谢。

    2020-10-01
  • farenew

    为什么一部署heroku账户就被停用了。。。。。

    2020-10-02
  • 笨猫

    @farenew 黑账户吧。我的绑定的卡没问题。

    2020-10-08
  • penn

    别再部署了,秒封号。 :lei:

    2020-11-14
  • L

    现在8行了,即使手动部署都封号

    2020-11-30
  • 笨猫

    @L 这都是看脸了

    2020-12-01
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    取消回复

    最新 热点 随机
    最新 热点 随机
    WinRAR7.13中文商业版以及授权文件 开源免费的2FA工具推荐(华为手机避坑Microsoft Authenticator 微软验证器) 情侣飞行棋:比吵架有趣,比看剧更亲密 Windows11美化方案教程 简洁、纯HTML导航项目:XG-NAV(开源) outlook邮箱安全修改方案,让你的邮箱安全无忧
    outlook邮箱安全修改方案,让你的邮箱安全无忧简洁、纯HTML导航项目:XG-NAV(开源)Windows11美化方案教程情侣飞行棋:比吵架有趣,比看剧更亲密开源免费的2FA工具推荐(华为手机避坑Microsoft Authenticator 微软验证器)WinRAR7.13中文商业版以及授权文件
    一个 iOS 17 StandBy 模式的安卓版时钟 阿里云香港30M轻应用玩法,净化系统,装bbr脚本等 槐荫树下:网易为迎奥运推出Micro-blog服务 博物馆奇妙夜2-很玩乐很搞笑 Debian10使用rclone挂载Google云端硬盘网盘 CowPE,基于Windows11的纯净无广告的PE系统
    最近评论
    诗音 发布于 5 天前(08月29日) 时间改到2099年在暂停更新也可以
    vip券网 发布于 1 个月前(08月01日) 写的很详细,赞 :razz: :evil:
    萧瑟 发布于 2 个月前(07月14日) 这个我也用了好久,不知道啥时候能上IP证书
    梵蒂冈 发布于 2 个月前(07月08日) 士大夫
    HuangWei 发布于 3 个月前(06月16日) 自己手动设置确实很烦,我之前使用过这个,感觉还不错,虽然已经不怎么维护了:https://githu...
    标签
    elliptictrue100.10.02
    BLOG ChatGPT Chrome CloudFlare DirectAdmin github Godaddy google kloxo Linux OneDrive OneIndex PHP QQ shadowsocks SNS ssh Typecho VPS web2.0 whmcs Windows wordpress 一键脚本 下载 免费 博客 图文教程 图标 图片 域名 头像 奥运 宝塔面板 插件 教程 日记 有趣 浏览器 游戏 猫 生活 电影 百度 网站 视频 设计 软件 阿里云盘 音乐
    好友
    • glzjin's blog glzjin's blog
    • ZAERA博客
    • 冰沫记
    • 奇它博客
    • 猫腻‘s Blog
    • 猫饭
    • 肥宅之家
    • 萌博
    • 野路子程序员

    COPYRIGHT © 2022 笨猫博客. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang