Code Monkey home page Code Monkey logo

acdrive's Introduction

AcDrive-Go

This project was largely inspired by Hsury/BiliDrive

特色

  • 用了都说好

使用指南

准备

前往发布页获取可直接运行的二进制文件

亦可下载源代码后自行编译使用,咱也不知道需要什么版本的go才行

登录

./acdrive login [-h] -u *username* -p *password*

username: AcFun用户名
password: AcFun密码

上传

./acdrive upload [-h] [-bs BLOCK_SIZE] [-t THREAD] -f *file*

file: 待上传的文件路径
BLOCK_SIZE: 分块大小(MB), 默认值为4
THREAD: 上传线程数, 默认值为4

上传完毕后,终端会打印一串META URL(通常以acdrive://开头)用于下载或分享,请务必妥善保管!
如果丢失的话可以重新上传文件,不出意外文件会被秒传,然后你将再次看到这一串META URL

下载

./acdrive download [-h] [-t THREAD] -m *meta*

meta: META URL(通常以 acdrive://开头)
THREAD: 下载线程数, 默认值为4

下载完毕后会自动进行文件完整性校验(会有提示),对于大文件该过程可能需要较长时间,若不愿等待可直接退出

查看文件元数据

./acdrive info [-h] -m *meta*

meta: META URL(通常以 acdrive://开头)

技术实现

将任意文件分块编码为图片后上传至A站,对该操作逆序即可下载并还原文件

免责声明

请自行对重要文件做好本地备份

请勿使用本项目上传不符合社会主义核心价值观的文件

请合理使用本项目,避免对 AcFun 的存储与带宽资源造成无意义的浪费

该项目仅用于学习和技术交流,开发者不承担任何由使用者的行为带来的法律责任

许可证

AcDrive-Go is under MIT License

本项目基于MIT协议发布

acdrive's People

Contributors

sihuan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.