【问题标题】:wget.exe Can't save page at virustotal.comwget.exe 无法在 virustotal.com 保存页面
【发布时间】:2015-12-01 11:48:57
【问题描述】:

我已经构建了个人防病毒软件,需要将来自 virustotal.com 的结果页面保存在我的驱动器中,我确实使用 wget.exe 作为第三部分来完成这项工作,但它一直显示此错误并保存 [0/0]:

    C:\wget\GnuWin32\bin>wget.exe --no-check-certificate https://www.virustotal.com/en/file/15c34d2b0e834727949dbacea897db33c785a32ac606c0935e3758c8dc975535/analysis/
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrcsyswgetrc = C:\wget\GnuWin32/etc/wgetrc--2015-11-30 06:39:03--  https://www.virustotal.com/en/file/15c34d2b0e834727949dbacea897db33c785a32ac606c0935e3758c8dc975535/analysis/
Resolving www.virustotal.com... 127.8.0.1
Connecting to www.virustotal.com|127.8.0.1|:443... connected.
WARNING: cannot verify www.virustotal.com's certificate, issued by `/C=US/O=GeoT
rust Inc./CN=RapidSSL SHA256 CA - G3':
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: `index.html.2'

    [ <=>                                   ] 0           --.-K/s   in 0s

2015-11-30 06:39:05 (0.00 B/s) - `index.html.2' saved [0/0]


C:\wget\GnuWin32\bin>

有什么建议吗?

【问题讨论】:

    标签: html windows save wget


    【解决方案1】:

    Virustotal 有一个 API 旨在做你想做的事,他们为此提供了 python 示例:

    import simplejson
    import urllib
    import urllib2
    url = "https://www.virustotal.com/vtapi/v2/file/report"
    parameters = {"resource": "99017f6eebbac24f351415dd410d522d",  
                  "apikey": "1fe0ef5feca2f84eb450bc3617f839e317b2a686af4d651a9bada77a522201b0"}
    data = urllib.urlencode(parameters)
    req = urllib2.Request(url, data)
    response = urllib2.urlopen(req)
    json = response.read()
    print json
    

    (所有代码取自https://www.virustotal.com/vtapi/v2/file/report

    很可能正因为如此,您尝试做的事情不起作用。当您使用在浏览器中看到的 URL 时,该站点返回 Content-Length0(它使用大量 Javascript 来完成工作)

    【讨论】:

      猜你喜欢
      • 2022-12-12
      • 1970-01-01
      • 2021-08-27
      • 2012-08-15
      • 2012-04-26
      • 1970-01-01
      • 2018-02-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多