账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    python 中调用wget 命令下载报错
    50
    0
    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
    • 你已离开 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部