Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #4155

Re: How can I get a plain text directory with wget?

From Dan Espen <despen@verizon.net>
Newsgroups comp.os.linux.misc
Subject Re: How can I get a plain text directory with wget?
Date 2012-02-06 08:33 -0500
Organization A noiseless patient Spider
Message-ID <ic39aot7bg.fsf@home.home> (permalink)
References <jgngpj$ie5$1@dont-email.me> <Pine.LNX.4.64.1202052217140.15588@darkstar.example.net> <jgni4h$n94$1@dont-email.me>

Show all headers | View raw


Todd <Todd@invalid.invalid> writes:

R> On 02/05/2012 07:27 PM, Michael Black wrote:
>> On Sun, 5 Feb 2012, Todd wrote:
>>
>>> Hi All,
>>>
>>> Not having much luck with the man page.
>>>
>>> I use the following piece of code in a bash script to
>>> give me a directory listing:
>>>
>>> wget --quiet http://$FtpSite$FtpDir -O - > $Tmp 2>&1
>>>
>>> The value pumped into $Tmp in a bunch of HTML code.
>>> It is annoying to have to sift through it.
>>>
>> Is it because you are actually getting an html page?
>
> Yes.  "bunch of HTML code."
>
>> Wouldn't the URL
>> start with ftp: to get an ftp directory?
>
> I did not give your the contents of the variable.  Usually
> it is for an ftp site, but very often I feed it an http site.
>
> releases.mozilla.org is particularly a pain-in-the-ass about
> not always supporting ftp calls.  I complain to them, they fix

There's probably a better API for monitoring Mozilla for changes.
Is this closer to what you want:

lynx --dump ftp://releases.mozilla.org/pub

-- 
Dan Espen

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How can I get a plain text directory with wget? Todd <Todd@invalid.invalid> - 2012-02-05 19:18 -0800
  Re: How can I get a plain text directory with wget? Sam <sam@email-scan.com> - 2012-02-05 21:31 -0600
    Re: How can I get a plain text directory with wget? Todd <Todd@invalid.invalid> - 2012-02-05 19:44 -0800
      Re: How can I get a plain text directory with wget? Sam <sam@email-scan.com> - 2012-02-06 05:51 -0600
      Re: How can I get a plain text directory with wget? Chick Tower <c.tower@deadspam.com> - 2012-02-06 19:30 +0100
        Re: How can I get a plain text directory with wget? root <NoEMail@home.org> - 2012-02-06 18:43 +0000
          Re: How can I get a plain text directory with wget? "Chris F.A. Johnson" <cfajohnson@gmail.com> - 2012-02-07 16:37 -0500
  Re: How can I get a plain text directory with wget? Michael Black <et472@ncf.ca> - 2012-02-05 22:27 -0500
    Re: How can I get a plain text directory with wget? Todd <Todd@invalid.invalid> - 2012-02-05 19:41 -0800
      Re: How can I get a plain text directory with wget? Dan Espen <despen@verizon.net> - 2012-02-06 08:33 -0500
  Re: How can I get a plain text directory with wget? Bit Twister <BitTwister@mouse-potato.com> - 2012-02-06 04:10 +0000
    Re: How can I get a plain text directory with wget? Todd <Todd@invalid.invalid> - 2012-02-05 23:03 -0800
  Re: How can I get a plain text directory with wget? Allodoxaphobia <knock_yourself_out@example.net> - 2012-02-06 20:04 +0000
    Re: How can I get a plain text directory with wget? Michael Black <et472@ncf.ca> - 2012-02-06 17:39 -0500

csiph-web