Questions tagged «wget»

GNU Wget是一个免费软件包,可使用HTTP,HTTPS和FTP(最广泛使用的Internet协议)检索文件。它是一种非交互式命令行工具,因此可以轻松地从脚本,Cron作业,不支持X Window System(X11)的终端等中调用它。

2
使用导出的cookie来保护受保护的内容
我从Firefox导出了一对对有问题的URL有效的cookie,并试图从该地址访问/下载受保护的内容,但最终结果是返回到登录页面。我尝试过为其他3个网站做同样的事情。关于我可能做错什么的任何线索? 我正在使用的语法: wget --load--cookies=FILE URL ----------------------------------------------- DEBUG output created by Wget 1.12 on linux-gnu. Stored cookie www.x.org -1 (ANY) / <permanent> <insecure> [expiry 1901-12-13 22:25:44] c_secure_login lz8xZQ%3D%3D Stored cookie www.x.org -1 (ANY) / <permanent> <insecure> [expiry 1901-12-13 22:25:44] c_secure_pass 2fd4e1c67a2d28fced849ee1bb76e74a Stored cookie www.x.org -1 (ANY) / <permanent> <insecure> [expiry 1901-12-13 …
1 wget  cookies 

1
gnutls_handshake()失败:拉函数出错
我的Ubuntu(Ubuntu 16.04.5 LTS)服务器有问题。这很奇怪。当我尝试使用任何工具通过ssl获取特定URL时,它会失败。例子: 卷曲 curl -v https://www.netonnet.se/ * Trying 91.198.164.24... * Connected to www.netonnet.se (91.198.164.24) port 443 (#0) * found 148 certificates in /etc/ssl/certs/ca-certificates.crt * found 596 certificates in /etc/ssl/certs * ALPN, offering http/1.1 * gnutls_handshake() failed: Error in the pull function. * Closing connection 0 curl: (35) gnutls_handshake() failed: …
1 ubuntu  wget  curl  gnutls 

1
如何使用wget下载dropbox文件夹?
有人在Dropbox上与我分享了一个照片文件夹。我想在Linux机器上下载包含图像的Dropbox文件夹,而不安装任何Dropbox软件。 我知道这个问题的答案,它解释了如何dl=1在URL的末尾添加,但使用命令: wget 'https://www.dropbox.com/sh/my_folder_url?dl=1' 我明白了 ERROR 400: Bad Request. 自2012年以来,Dropbox API可能已经发生了变化?是否可以使用wget下载dropbox文件夹?
1 bash  dropbox  wget 

1
wget连接由peer重置
我使用以下代码下载pdf文件列表: wget -i list.txt -A .pdf 一些pdf文件正确下载。但是,某些pdf文件未正确下载。当我检查日志时,我看到以下报告: --2013-04-09 11:25:42-- http://amazon.com/111.pdf Reusing existing connection to amazon.com:80. HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9 Length: unspecified Saving to: `111.pdf' [ <=> ] 1,045 --.-K/s in 2m 9s 2013-04-09 11:27:51 (8.11 B/s) - Read error at byte 1045 (Connection reset …
1 pdf  cygwin  wget 

1
-bash:pear:找不到命令
当尝试通过终端安装phpDoc时,出现以下错误: -bash: pear: command not found 即使我刚刚安装了梨。 在尝试安装phpDoc之前,我安装了Pear并收到以下警告: WARNING! The include_path defined in the currently used php.ini does not contain the PEAR PHP directory you just specified: </Users/Mike/pear/share/pear> If the specified directory is also not in the include_path used by your scripts, you will have problems getting any PEAR packages …
1 unix  wget  pear 

1
为什么我不能在SSH Shell中使用wget命令?
我有以下问题。 我正在通过SSH使用我的RaspBerry(已安装RaspBian)。 我的问题是我无法使用wget命令,因为它失败了。 例如,如果我尝试执行以下命令: sudo wget http://dietrofuoritempo.files.wordpress.com/2013/02/bla-bla.jpg 我收到此错误消息: --2014-05-29 19:39:11-- http://dietrofuoritempo.files.wordpress.com/2013/02/bla-bla.jpg Resolving dietrofuoritempo.files.wordpress.com (dietrofuoritempo.files.wordpress.com)... failed: No address associated with hostname. wget: unable to resolve host address `dietrofuoritempo.files.wordpress.com' pi@raspberrypi ~/driverWireless $ sudo wget http://dietrofuoritempo.files.wordpress.com/2013/02/bla-bla.jpg 奇怪的是,我可以ping它: pi@raspberrypi ~/driverWireless $ ping dietrofuoritempo.files.wordpress.com PING dietrofuoritempo.files.wordpress.com (192.0.80.175) 56(84) bytes of data. 64 bytes from dietrofuoritempo.files.wordpress.com …

3
如何从Linux下载URL中的文件
通常会下载一个文件扩展名为URL的文件。 要下载Ubuntu ISO,一个很简单 wget http://releases.ubuntu.com/14.04.3/ubuntu-14.04.3-desktop-amd64.iso 但是,我遇到了一个我怀疑使用ASP.Net / IIS的网站。 这种形式的ISO链接 (我在......政策的情况下删除了链接内容) : http://some.ip.in.here/website.com/IMAGENAME.ISO?md5=hUhpyFjk7zEskw06ZhrWAQ&expires=1454811899 我不知道如何下载它,因为它有MD5和到期时间作为参数,所以wget只下载一个网页,而不是这个ISO。 有什么建议?

1
wget只保存第一行cookie
我想在使用wget时从特定网页下载并保存所有cookie。但是,wget只保存第一行。我希望wget中保存的Cookie与我正在查看的Cookie(例如Google Chrome开发人员工具)相同。 我使用的是: wget "<website here>" --keep-session-cookies --save-cookies=cookies.txt 然后,当我检查cookies.txt时,它与在Google Chrome中加载“[website]”并在Developer Tools窗口中查看cookie不同。 如何在wget中下载并保存所有cookie? 谢谢。
wget 

1
使用wget登录网页
我使用wget登录此网页时遇到问题: http://dealers.volare-kinderfietsen.nl/index.php?dispatch=auth.login_form 通常这对我来说没问题。我只想在登录此页面时存储cookie。我用: wget --save-cookies cookies.txt --keep-session-cookies --post-data =“user_login = myloginname& password = mypassword”“ http://dealers.volare-kinderfietsen.nl/index.php?dispatch=auth.login_form “ 但由于某种原因,它不允许我登录此表单。我搜索了一些,这个页面是一个cs购物车网上商店系统...也许有人有这方面的一些信息? 提前致谢
wget  curl 

1
linux:用交互式ftp接受的用户名/密码,但用wget“登录不正确”
我正在尝试从ftp站点下载一些数据,但是登录时遇到了问题。我知道用户名/密码是正确的,因为它在交互式使用ftp时有效。但是,当我尝试使用wget时,我得到: Logging in as $username... Login incorrect. 我从命令行尝试了以下命令: wget -r -nd -A "path/to/data/*/*hdf" --ftp-user=$username --ftp-password=$password ftp:$ftpSite wget -r -nd -A "path/to/data/*/*hdf" --user=$username --password=$password ftp:$ftpSite wget -r -nd -A "path/to/data/*/*hdf" --ftp-user=$username --ask-password ftp:$ftpSite wget -r -nd -A "path/to/data/*/*hdf" --user=$username --ask-password ftp:$ftpSite 我总是得到相同的“登录不正确”失败。 我在不使用变量的情况下从命令行运行。我只在这个问题中使用变量来审查敏感信息。 我会在ftp中使用mget,但我的理解是我不能使用通配符从多个子目录中获取文件。当我尝试“mget * / * hdf”时,我得到一个“没有这样的文件或目录”错误。但是我知道数据存在,因为当我进入其中一个子目录并执行“mget * hdf”时,它可以工作
ftp  wget 

0
如何根据时间戳下载网站的HTML页面?
我知道这可能是一个重复的问题,我为此感到抱歉, 但是我找不到任何问题的答案。 我只是想下载Pages html文件,没有任何其他内容, 和(如果可能的话)我想制作一个时间戳选项,只下载“比...更新”的页面 我认为Wget可能会很棒。 (我的系统上安装了CygWin和GNUWin32) 任何帮助请 - 提前感谢...

1
wget权限问题
只是为了检查:当在linux或freebsd中使用wget时,如果下载的文件预先设置为具有一些权限,uid号和gid号,该文件是否在下载的客户端中保留其权限?我不这么认为,只是为了检查。

2
什么是“wget -r”的PC版本从命令行中的ftp站点获取文件? [重复]
可能重复: 什么是相当于wget的窗口? 有人向我展示了一个非常快速的方法,通过Mac上的shell使用命令“wget -r ftp://”(然后是ftp站点文件夹位置的地址)从ftp站点获取文件夹,它会下载到任何文件夹我在,保持所有子目录与ftp站点相同 看起来非常简单快捷,但我如何在PC上做类似的事情呢?
windows  ftp  wget 

1
使用WGET从Diggnation获取所有.mov文件
我正在尝试使用WGET下载每一集Diggnation以获取小型QuickTime电影。通过每一页下载它们都太累了。这就是我的想法: wget -r -l 1 -A mov http://revision3.com/diggnation/ 不幸的是,这不起作用。谁有更好的想法如何获得所有的eps?这是一个示例网址: http://revision3.com/diggnation/2005-07-01

1
如果wget磁盘空间不足会怎么样?
我即将运行wget来镜像大型网站以供离线观看。我担心该网站可能对我的硬盘太大而且我的下载搞砸了。我有什么方法可以预先弄清楚或估计网站的大小吗?如果我中途耗尽空间怎么办?我可以释放空间并恢复吗? 谢谢你的帮助。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.