Re: wget css parsing, updated to trunk

2007-01-24 Thread Ted Mielczarek

On 1/23/07, Hrvoje Niksic [EMAIL PROTECTED] wrote:

Ted Mielczarek [EMAIL PROTECTED] writes:

 Is there any interest in this?

Sorry for answering this late.  I, for one, find it very interesting.
Fetching CSS would be a very welcome feature.


Hi Hrvoje,

I'm glad to hear that!  It's a rather large patch, so please let me
know if you have any questions about how it works.

Regards,
-Ted


Suggestion

2007-01-24 Thread Nejc Škoberne

Hello,

as far as I can see, wget always prints the final data transfer speed
in autodetected units. I think it would be useful (and I guess also
simple to add) an option, which would tell wget to always print the
speed in bytes per second (for example) so that it is always nicely
parsable no matter what the data transfer speed range is. Or else it
is necessary to parse also the K and the M characters and do some
conditionals ... it's just not nice.

Thanks,
Nejc
begin:vcard
fn;quoted-printable:Nejc =C5=A0koberne
n;quoted-printable:=C5=A0koberne;Nejc
email;internet:[EMAIL PROTECTED]
tel;fax:+38653810387
tel;cell:+38631883217
x-mozilla-html:FALSE
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


How to download a file with cutoff (let's say 5MB)?

2007-01-24 Thread Archon810
Hello everyone,

I'm trying to cut down on unnecessary downloading in some scripts I have, and in
most cases it will actually suffice to download a chunk of files, for ex the
first 5MB. I've looked thru all the wget options and the only remotely useful
option I found was -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.

Unfortunately, that option doesn't do what I thought it would (it doesn't work
on single files).

Googling the problem didn't seem to produce any helpful results. Can anyone
help?

I've also posted this question at
http://www.linuxquestions.org/questions/showthread.php?p=2601450 without much
luck.

Thank you in advance.

Sincerely,
Archon810.