Skip to content

[ 迅雷快鸟 Shell 版 ] A Shell Implementation of Kuainiao, Xunlei

License

Notifications You must be signed in to change notification settings

vcheckzen/XunleiKuainiaoInShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XunleiKuainiaoInShell

Introduction

A shell implementation of kuainiao, xunlei, runs properly on almost all linux platform.

How to Use

Bind Your Xunlei with Mi Accout

Because the code is using mi account to authorize xunlei, you should bind them first. Here is the guide.

Download the Code

Assuming you've installed git, then

git clone https://github.com/vcheckzen/XunleiKuainiaoInShell.git
cd XunleiKuainiaoInShell

Edit the Code, Add Your Mi Account

Change XXXXXXXXXXX with your mi account username and password in kuainiao.sh.

# Line 8 and 9 of kuainiao.sh
user="XXXXXXXXXXX"
passwd="XXXXXXXXXXX"

Install Requirements and Test Environment

# Requirements on OpenWRT, Padavan and other RouterOS based on entware or optware environment
opkg update && opkg install libreadline libcurl libopenssl bash curl wget openssl-util ca-certificates ca-bundle

# Test https and grep, a normal output is like "ip":"121.226.150.154"
curl -s https://ipconfig.io/json | grep -Eo "\"ip\":\"[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\""
wget -qO- https://ipconfig.io/json | grep -Eo "\"ip\":\"[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\""

Run kuainiao.sh to Test

chmod +x kuainiao.sh browser.sh

# Speed up
./kuainiao.sh

# Revocer
./kuainiao.sh 0

Set kuainiao.sh As a Cron Job

The code below will enable kuainiao.sh to run one time in an hour, noting that certain_directory should be replaced.

crontab -l > tmp && echo "1 * * * * /certain_directory/kuainiao/kuainiao.sh" >> tmp && crontab tmp && rm -f tmp

References

About

[ 迅雷快鸟 Shell 版 ] A Shell Implementation of Kuainiao, Xunlei

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages