# qrcode-token **Repository Path**: gngpp/qrcode-token ## Basic Information - **Project Name**: qrcode-token - **Description**: 终端QRCode扫码获取阿里云盘Refresh Token - **Primary Language**: Go - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-11 - **Last Updated**: 2022-05-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: Aliyun, Go语言, refresh-token, token, AliyunPan ## README [![Release](https://github.com/zf1976/qrcode-token/actions/workflows/release.yml/badge.svg)](https://github.com/zf1976/qrcode-token/actions/workflows/release.yml) # qrcode-token 基于阿里云盘抓包接口编写的一个从命令行`QR Code`扫码获取阿里云盘`refresh_token`的工具,使用移动客户端APP `QRCode`扫码登录,获取的refresh_token,支持`alist`直链下载。 ### 使用 - 自行编译安装(依赖cgo,确保存在gcc环境) ```shell # 拉取源码 git clone https://github.com/zf1976/qrcode-token.git && cd qrcode-token # 拉取依赖 go mod tidy # 编译 go build -ldflags="-s -w" -o app main.go # 执行 ./app ``` > openwrt环境下需要安装gcc(固件一般不会自带) ```shell opkg update && opkg install gcc ar -rc /usr/lib/libpthread.a ``` - 下载Release包 ```shell wget https://github.com/zf1976/qrcode-token/releases/download/v1.0/linux_amd64_qrcode-token.tar.gz tar zxvf ./linux_amd64_qrcode-token.tar.gz # 放在Linux bin目录可以直接执行了 mv ./qrcode-token /usr/bin # macOS mv ./qrcode-token /usr/local/bin ``` ### FAQ > 如果有需要其他网盘的,可以扫码登录的可以提issue跟我说 ### 示例