On Fri, 04 Aug 2006 11:28:07 -0500, Dances With Crows wrote:
> I think if you really want this, I think you're going to have to hack
> wget such that it takes another option, --size-range or something.
> Then wget would have to parse the server's 200 responses and either
> halt the download if the 200 said the file wasn't in --size-range,
> or unlink() the file after it finished. The exact approach you'd
> take depends on the wget code itself, and your level of C skill.
Hi Dances with Crows,
Thank you for your kind help. As you surmised, I do not have the skill set
to "hack" the venerable wget command so that it selects to download only
files of a certain range in size.
I had also read the manpage and I had searched prior but I did not see that
anyone had done this yet. I am kind of surprised since it's the most basic
of things you want to do.
For example, let's say we went to a free icon site and let's say they
updated that site periodically with the little web page bitmaps and better
icons usable for powerpoint slides and too-big icons suitable for photo
sessions.
Let's say you had a scheduled wget go to that site daily and download all
the icons automatically from that http web page but not the large ones or
the really really small ones. Let's say there were thousands of these. Of
course, ftp would be a pain. You likely wouldn't even have FTP access
anyway. And, downloading them manually isn't in the cards.
What I'd want to schedule is:
wget -prA.gif,jpg,bmp
http://that/freeware/icon/web/page --size:<low:high>
barb