完善Plowshare使用体验
过去的两个月中,我时常利用VPS配合plowshare下载国外网盘资源(文)。在实际操作中,我发现我使用的plowshare并没有完全支持Github中plowshare申明支持的网盘清单。
寻找原因
《利用VPS下载国外网盘资源并上传至百度云》一文中我在CentOS 7安装完plowshare就发现plowmod
命令无法使用。按照plowshare安装流程,可以使用plowmod --install
这句命令安装外部模块(external modules),也就是网盘模块,但我每次都不成功,终端显示-bash: plowmod: command not found
,无法找到此命令,说明在我安装的plowshare中不存在plowmod
这个功能。于是我去查看了Debian系统中plowshare的官方包和CentOS的包,发现两者的plowshare居然差了一个大版本,前者版本号已经是2.1.5,后者版本号才1.0.6。所以我判断原因是CentOS下的plowshare版本过低导致其中缺少plowmod
功能。
重新安装plowshare
因为plowshare在CentOS中版本过低,所以将VPS系统设置成Debian就可以安装最新的plowshare。于是我重装了我的VPS,系统设置为Debian,并在Debian中安装plowshare。在安装过程中发现,Debian找不到plowshare,通过在Github中提交issue我知道Debian Jessie中plowshare也是老版本并且名字叫plowshare4
,先得安装plowshare4
才能再安装新版的plowshare(注:我安装的时候Debian的plowshare还是2.1.5版,需要通过如下方法安装升级,现已变成2.1.6版,应该可以直接安装):
root@alpha:~# sudo apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
.
.
.
Get:22 http://ftp.debian.org jessie-updates/non-free amd64 Packages [516 B]
Fetched 12.5 MB in 49s (255 kB/s)
Reading package lists... Done
root@alpha:~# apt-get install plowshare
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package plowshare
root@alpha:~# apt-get install plowshare4
Reading package lists... Done
Building dependency tree... Done
.
.
.
Setting up plowshare4 (1.0.5-1+deb8u1) ...
可以在代码中发现无法直接安装plowshare(E: Unable to locate package plowshare
),只能安装plowshare4,而plowshare4的版本只有1.0.5,比CentOS的plowshare版本都要低,仍旧无法使用plowmod
,所以下一步需要升级plowshare。
升级plowshare
在issue中,arcresu告诉了我如何升级plowshare:
To get the latest versions you should enable jessie backports and then perform an update which will replace the plowshare4 package with plowshare at version 2.1.5
按照arcresu给出的Instructions页面,第一步我需要添加
deb http://ftp.debian.org/debian jessie-backports main
这句命令至sources.list
这个文件(Add backports to your sources.list)。于是我又开始在网上寻找如何在Debian添加命令至文件。在终端中依次使用如下命令,每行回车即可:
echo "deb http://ftp.debian.org/debian jessie-backports main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
按照Instructions,在添加完命令后我需要从backports中安装plowshare这个包(Install a package from backports)
root@alpha:~# apt-get -t jessie-backports install "plowshare"
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
plowshare4
The following NEW packages will be installed:
plowshare
The following packages will be upgraded:
plowshare4
.
.
.
Setting up plowshare (2.1.5-1~bpo8+1) ...
Setting up plowshare4 (2.1.5-1~bpo8+1) ...
可以看到plowshare都更新成2.1.5版了。按照plowshare的安装说明,最好再安装一下git
root@beta:~# apt-get install git
然后plowmod
命令终于可以运行了!
root@alpha:~# plowmod --install
.
.
root@alpha:~# plowmod --update
至此,VPS安装最新版plowshare完成,看看plowshare支持国外网盘的完整列表吧:
root@alpha:~# plowdown --modules
115
180upload
1fichier
2shared
4share_vn
4shared
anonfiles
bayfiles
bayimg
bigfile
billionuploads
bitshare
catshare
chomikuj
crocko
data_hu
datafile
dataport_cz
depositfiles
divshare
dl_free_fr
espafiles
euroshare_eu
faststore
fboom_me
filebin_ca
filecloud
filecore
filedais
filefactory
filejoker
fileover
filepost
filepup_net
filer_net
fileshark
firedrive
flashx
freakshare
fshare_vn
gamefront
ge_tt
gfile_ru
hdstream_to
hexupload
hipfile
hotlink_cc
keep2share
letitbit
lunaticfiles
mediafire
megashares
multiupload
myvdrive
nakido
netkups
netload_in
nitroflare
nowdownload_co
oboom
openload
prefiles
promptfile
rapidgator
rapidu
rghost
ryushare
salefiles
sendspace
sharebeast
sharehost
shareonline_biz
sockshare
solidfiles
tempsend
tempshare
tezfiles
thefilebay
turbobit
uloz_to
ultramegabit
uplea
upload_cd
uploadboy
uploaded_net
uploading
uploadrocket
upstore
uptobox
yourvideohost
zalaa
ziddu
zippyshare
一共支持93个网盘,当然其中有一些网盘在使用过程中需要高级账户,不过想想利用plowshare
然后配合9kw.eu
的CAPTCHA读取功能,让VPS代劳帮你下载网盘资源,还是比较惬意的事。
安装bypy
如果还需要上传到百度云,则可再安装bypy。由于bypy程序依赖,需要将vps的系统区域编码设置为UTF-8,具体见官方中文说明
bypy安装步骤和在CentOS中安装步骤类似:
apt-get install python-pip
apt-get upgrade python-pip
pip install requests
pip install -U requests
pip install bypy
#如果遇到
ImportError: cannot import name 'IncompleteRead'
先
apt-get remove python-pip
然后
easy_install -U pip
pip install bypy
声明:我是代码小白,以上步骤和代码仅供参考。