python wget库_python 中调用wget 命令下载报错

save_path = os.path.join("/home/shenjianlin/pdf_file",name)

try:

cmd = ("sudo wget -P -N -o -c -O {} {}".format(save_path, link))

ref = subprocess.call(cmd, shell=True)

if ref != 0:

print ("can't get download")

else:

print("finishing downloading {} page {} row data".format(i,j))

except Exception as e :

print('download error has happend')

print (e)

wget: missing URL

Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

can't get download

/bin/sh: $'350266213345212277345261225346234233-82351241265': command not found

can't get download

《2018暑期旅游消费趋势预测》:亲子客群占主流  高档海岛酒店占比提升-6页.pdf

途牛旅游网

2018-06-22 18:01:38

http://pdf1.qimingpian.com/an...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值