【发布时间】:2010-09-09 14:09:01
【问题描述】:
我正在尝试下载一些远程页面。在源代码中有很长的一行。 curl 和 wget 都下载文件,但决定错过这一行。是否有另一个我可以使用的命令行实用程序和/或有人知道我可以如何解决这个问题。
编辑: 我能否澄清一下,我已经尝试使用 wget 和 curl 并且两个文件都错过了这条线。
编辑:
[x@x scripts]$ curl --version
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
[x@x scripts]$ wget --version
GNU Wget 1.11.4 Red Hat modified
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Currently maintained by Micah Cowan <micah@cowan.name>.
【问题讨论】:
-
你怎么知道这条线真的在那里?
-
我去mysite.com/page.html...查看源代码...
-
如果您使用浏览器查看 DOM 源,它可能与从服务器下载的实际源中的内容不同。例如,Javascript 可以在文档下载后对其进行转换。
-
我正在查看页面未渲染的源代码。