homepage Welcome to WebmasterWorld Guest from 54.166.228.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
wget wildcard?
smartcard




msg:914374
 6:03 pm on Mar 22, 2006 (gmt 0)

How can I wget files from another http site such as

wget [dom.com...]

I need to get all the files starting with 2 and .jpg files.

How can i do it?

 

MattyMoose




msg:914375
 6:12 pm on Mar 22, 2006 (gmt 0)

You can't do that, since the page you're requesting does not give you a directory listing. Ie: the wildcard can mean anything, but you don't know what if it could be. For example, in your example, it could be:
2a.jpg
2b.jpg
28489ch7833.jpg
29478947893jhchf748hf4.sdy893nfd.213.jpg

And each of those would be an HTTP GET. You'd quickly be banned/blocked from whatever site you're grabbing those images from.

The only way is to grab all the HTML/CSS and grep for references to '2*.jpg', and grab those files. That does not obviously get any files that are not referenced in html/css

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved