{"id":13626038,"url":"https://github.com/fffonion/Xunlei-Fastdick","last_synced_at":"2025-04-16T11:31:07.139Z","repository":{"id":31377679,"uuid":"34940712","full_name":"fffonion/Xunlei-Fastdick","owner":"fffonion","description":"迅雷快鸟 Xunlei Network Accelerator For Router","archived":false,"fork":false,"pushed_at":"2020-09-27T06:37:11.000Z","size":151,"stargazers_count":823,"open_issues_count":29,"forks_count":176,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-04-12T23:35:10.894Z","etag":null,"topics":["openwrt","python","router"],"latest_commit_sha":null,"homepage":"https://yooooo.us/2015/xunlei-fastdick-router","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fffonion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-02T08:29:12.000Z","updated_at":"2025-04-11T08:12:17.000Z","dependencies_parsed_at":"2022-07-28T08:48:59.945Z","dependency_job_id":null,"html_url":"https://github.com/fffonion/Xunlei-Fastdick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fffonion%2FXunlei-Fastdick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fffonion%2FXunlei-Fastdick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fffonion%2FXunlei-Fastdick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fffonion%2FXunlei-Fastdick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fffonion","download_url":"https://codeload.github.com/fffonion/Xunlei-Fastdick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249235040,"owners_count":21235135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openwrt","python","router"],"created_at":"2024-08-01T21:02:08.394Z","updated_at":"2025-04-16T11:31:07.120Z","avatar_url":"https://github.com/fffonion.png","language":"Python","funding_links":[],"categories":["软硬件功能","Python"],"sub_categories":["带宽提升"],"readme":"迅雷快鸟\r\n===\r\n一个可以运行在路由器的迅雷快鸟(diǎo)和上行提速客户端\r\n\r\n在提交issue前，请先阅读[须知](https://github.com/fffonion/Xunlei-Fastdick/blob/master/CONTRIBUTING.md)\r\n\r\n# 快速入门\r\n* [下载](https://github.com/fffonion/Xunlei-Fastdick/archive/master.zip)并解压\r\n* 同目录下新建 __swjsq.account.txt__，填入`用户名,密码`，如`ahaha,123456`（英文逗号），并保存\r\n* python ./swjsq.py \u0026\r\n\r\n# 详细使用方法\r\n\r\n### 能安装Python的路由器\r\n\r\n以小米路由为例\r\n\r\n1. 开启SSH\r\n2. 安装Python (OpenWRT用户可以安装完整的`python`包，或者安装`python-light`, `python-codecs`和`python-openssl`三个包\r\n3. 将[swjsq.py](https://github.com/fffonion/Xunlei-Fastdick/raw/master/swjsq.py)通过[WinSCP](https://winscp.net/eng/download.php)拷贝到路由`/data/usr/bin/swjsq`，同目录下新建 __swjsq.account.txt__，填入`用户名,密码`，如`ahaha,123456`（英文逗号），并保存\r\n4. 使用SSH进入目录`/data/usr/bin/swjsq`，运行`$ python ./swjsq.py`\r\n5. 测试运行一次看能否提速，提示`Upgrade done: down xxM, up xxM`即表示成功。如果只开启了快鸟会员，则只显示`down xxM`；如果只开启了上行提速会员，则只显示`up xxM`。\r\n6. 设置自启动\r\n     SSH运行`vi /etc/rc.local` 或者进入LuCI的`本地启动脚本`界面：\r\n\t 在exit0语句之前加上：\r\n     `nohup python /data/usr/bin/swjsq/swjsq.py \u003e/dev/null 2\u003e\u00261 \u0026`\r\n7. 重启，稍等几分钟，ssh到路由，使用ps命令查看swjsq是否正常启动，提速是否成功。\r\n8. 升级路由器固件后，需要重新设置自启动，swjsq一般不需要重新设置，请注意备份swjsq文件。\r\n\r\n### 无法安装Python的路由器\r\n\r\n适用于硬件条件有限无法在路由器上安装Python的用户\r\n\r\n1. 在路由器上安装支持https的wget或curl\r\n2. 在PC上安装Python，2.x或3.x版本均可\r\n3. 下载[swjsq.py](https://github.com/fffonion/Xunlei-Fastdick/raw/master/swjsq.py)，同目录下新建 __swjsq.account.txt__，填入`用户名,密码`，如`ahaha,123456`（英文逗号），并保存\r\n4. 在PC的命令提示符中进入刚才下载的目录，然后运行`python swjsq.py`\r\n5. 提示`Upgrade done: down xxM, up %xxM`即表示成功登陆成功。如果只开启了快鸟会员，则只显示`down xxM`；如果只开启了上行提速会员，则只显示`up xxM`。\r\n6. 安装生成的`swjsq_0.0.1_all.ipk`，安装后，路由`/bin`目录将有 __swjsq__ 文件；进入第8步\r\n7. 如果对路由器`/bin`目录的修改重启后会丢失，请使用[WinSCP](https://winscp.net/eng/download.php)手动将前一步中PC上生成的`swjsq_wget.sh`拷贝到路由器上不会丢失的目录，如`/data/usr/bin`，并更名为`swjsq`；进入第9步\r\n8. 设置自启动，在路由器的`启动项`界面将`swjsq`设置为**已启用**；进入第10步\r\n9. 手动修改启动项：\r\n     SSH运行`vi /etc/rc.local`或者进入LuCI的`本地启动脚本`界面：\r\n     在exit0语句之前加上：\r\n     `nohup /bin/swjsq \u003e/dev/null 2\u003e\u00261 \u0026`\r\n     前一步中如果手动拷贝了`swjsq_wget.sh`，此处应改为：\r\n     `nohup /data/usr/bin/swjsq \u003e/dev/null 2\u003e\u00261 \u0026`\r\n    进入第10步\r\n10. 重启，稍等几分钟，ssh到路由，使用ps命令查看swjsq是否正常启动，或者在路由器`系统进程`界面查找是否存在`{swjsq} /bin/ash /bin/swjsq`进程；检查提速是否成功。\r\n11. 升级路由器固件后，需要重新设置自启动，swjsq一般不需要重新设置，请注意备份swjsq文件。\r\n\r\n# Docker\r\n\r\n**下载最新 docker镜像**\r\n\r\n```\r\n$ docker pull fffonion/xunlei-fastdick\r\n```\r\n\r\n群晖用户可以直接从`套件`-\u003e`Docker`-\u003e`注册表`中搜索`xunlei-fastdick`并下载；如果拉取失败，可以登录SSH后运行上述命令。\r\n\r\n\r\n或者使用DaoCloud镜像\r\n\r\n```\r\n$ docker pull daocloud.io/fffonion/xunlei-fastdick\r\n```\r\n\r\n**指定环境变量作为启动参数**\r\n\r\n```\r\n$ docker run -d --name=xunlei-fastdick --restart=unless-stopped -e XUNLEI_UID=\u003cuid\u003e -e XUNLEI_PASSWD=\u003cuid\u003e fffonion/xunlei-fastdick\r\n```\r\n\r\n如果上一步使用了DaoCloud镜像\r\n\r\n```\r\n$ docker run -d --name=xunlei-fastdick --restart=unless-stopped -e XUNLEI_UID=\u003cuid\u003e -e XUNLEI_PASSWD=\u003cuid\u003e daocloud.io/fffonion/xunlei-fastdick\r\n```\r\n\r\n## 编译基于arm32v7内核的镜像(例如运行在树莓派上)\r\n\r\n**编译**\r\n```\r\n$ docker build -f Dockerfile.arm32v7 -t yourname/xunlei-fastdick .\r\n```\r\n\r\n**运行**\r\n```\r\n$ docker run -d \\\r\n    --name=xunlei-fastdick \\\r\n    --restart=unless-stopped \\\r\n    -e XUNLEI_UID=\u003cuid\u003e \\\r\n    -e XUNLEI_PASSWD=\u003cuid\u003e \\ \r\n    yourname/xunlei-fastdick\r\n```\r\n\r\n# 说明\r\n* 生成的`swjsq_wget.sh`和`swjsq_0.0.1_all.ipk`包含了账户信息，请不要共享给他人使用\r\n* 程序会查询快鸟和上行提速的到期时间，并自动选择是否开启快鸟提速和上行提速功能\r\n* 第一次登陆成功后，用户名和密码会明文保存在`.swjsq.session`文件中。如果需要更换账号，只需新建一个 __swjsq.account.txt__，并重新运行python脚本\r\n* 如果修改或更新了python脚本，下次运行时将重新生成ipk包和`swjsq_wget.sh`，请重新安装ipk或拷贝`swjsq_wget.sh`到路由器\r\n* 会员权限及月加速流量等详见[这里](http://swjsq.xunlei.com)\r\n* 自带[这里抄的](https://github.com/mengskysama/XunLeiCrystalMinesMakeDie/blob/master/run.py)纯python实现RSA加密，可选安装pycrypto加快(首次)运算速度\r\n\r\n# 同类产品\r\n- [mengskysama/yikuuuuu](https://github.com/mengskysama/yikuuuuu)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffffonion%2FXunlei-Fastdick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffffonion%2FXunlei-Fastdick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffffonion%2FXunlei-Fastdick/lists"}