zoukankan      html  css  js  c++  java
  • wget获取https资源

    使用wget获取 https资源,缺省命令下是要使用证书,如果还未安装证书,可以选择忽略。

      例如没有github.com的证书,执行如下命令

    mkdir -p model
    cd model
    wget  https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/model/vgg19.params
    cd ..
    
    mkdir -p input
    cd input
    wget https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/input/IMG_4343.jpg
    wget  https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/input/starry_night.jpg
    cd ..
    
    mkdir -p output
    

      会报错,

    ERROR: cannot verify github.com's certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA':
      Unable to locally verify the issuer's authority.
    To connect to github.com insecurely, use `--no-check-certificate'.

      此时,加上 --no-check-certificate  选项,忽略证书检查,如下

    #!/bin/bash
    
    mkdir -p model
    cd model
    wget --no-check-certificate https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/model/vgg19.params
    cd ..
    
    mkdir -p input
    cd input
    wget --no-check-certificate https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/input/IMG_4343.jpg
    wget --no-check-certificate https://github.com/dmlc/web-data/raw/master/mxnet/neural-style/input/starry_night.jpg
    cd ..
    
    mkdir -p output
    

      

  • 相关阅读:
    scrapy 第一个案例(爬取腾讯招聘职位信息)
    scrapy 代码调试用 shell
    scrapy 命令行创建 启动 跟踪
    scrapy 手动编写模板
    scrapy安装
    爬虫之xpath用法
    爬虫之 beautifusoup4
    抓包工具fiddler
    12306登录爬虫 session版本
    Drainage Ditches(dinic)
  • 原文地址:https://www.cnblogs.com/simplelovecs/p/5357504.html
Copyright © 2011-2022 走看看