Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

wget wildcard?

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

Junior Member

10+ Year Member

joined:Aug 23, 2004
votes: 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?

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

Preferred Member

10+ Year Member

joined:Aug 28, 2003
votes: 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:

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


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members