bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] ot: clicking email links advice


From: Tim Ruehsen
Subject: Re: [Bug-wget] ot: clicking email links advice
Date: Thu, 02 Jan 2014 11:08:03 +0100
User-agent: KMail/4.11.3 (Linux/3.12-1-amd64; KDE/4.11.3; x86_64; ; )

On Thursday 02 January 2014 20:28:08 address@hidden wrote:
> On Thu, January 2, 2014 8:24 pm, address@hidden wrote:
> > On Thu, January 2, 2014 8:01 pm, Tim Ruehsen wrote:
> >> But you can use the tool 'munpack' from the package 'mpack' to split
> >> RFC-822
> >> emails into single parts and then process the HTML part(s) with wget.
> >> 
> >> Example:
> >> 1. Save your email as xxx.mbox
> >> 2. Extract the contents
> >> $ munpack -t xxx.mbox
> >> part1 (text/plain) part2 (text/html) 3. Process 'part2' with wget $ wget
> >> --force-html -i part2
> >> ...
> > 
> > thanks
> > 
> > the email contains 3 links, I need to click 1st link ONLY, is there any
> > such trick ?
> 
> Tim,
> 
> thumbs UP
> 
> the first of 3 wgets returned what I need !!!
> 
> just need to stop other 2...?

Well, maybe you could "misuse" --quota.
The docs say, it will never affect downloading a single file (I guess the 
first file in your case). So a --quota=1 should do it.

>From the Wget docs:
       -Q quota
       --quota=quota
           Specify download quota for automatic retrievals.  The value can be 
specified in bytes (default), kilobytes (with k suffix),
           or megabytes (with m suffix).

           Note that quota will never affect downloading a single file.  So if 
you specify wget -Q10k
           ftp://wuarchive.wustl.edu/ls-lR.gz, all of the ls-lR.gz will be 
downloaded.  The same goes even when several URLs are
           specified on the command-line.  However, quota is respected when 
retrieving either recursively, or from an input file.  Thus
           you may safely type wget -Q2m -i sites---download will be aborted 
when the quota is exceeded.

           Setting quota to 0 or to inf unlimits the download quota.

Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]