Download with Wget

By Vaughan Chandler Last update Jan 14, 2009 — Installed 1,300 times. Daily Installs: 0, 1, 0, 3, 1, 2, 2, 2, 1, 2, 3, 2, 2, 3, 1, 3, 4, 0, 3, 1, 3, 6, 6, 1, 1, 3, 1, 8, 3, 3, 3, 3
Script Summary:
Creates code to download web pages, images and other files using wget
Recently Updated TopicsPosts
Suggestions2
Can't view profiles2

this script has 2 topics, 4 posts

This script has no reviews.

Examples of what this script lets you do:
  • Download every image on a web page
  • Download every zip file a web page links to
  • Download full-size pictures from Facebook or Myspace Albums, or Google Image searches
  • Download any background images on a page
  • Much, much more...

This script generates code for downloading files using wget. It can find files by looking at links on a page or images on a page (even backgrounds). You can filter the file list as well as do a find/replace on the filenames before downloading.

You must have Wget installed to use the code created by this script.

Instructions

Either press CTRL-SHIFT-D or go Tools > Greasemonkey > User Script Commands > Download with Wget and a popup will appear on the page.

If you are downloading from a site that has a preset (currently Facebook, MySpace and Google Images) just select the site from the drop-down box in the top right and click 'Create Code'. Thats it.

For other sites:

Use the Source options to tell the script whether to look for files in links, images, CSS (background images) or some combination of those options. You can optionally narrow down the list by entering comma separated extensions in the extension filter (eg. jpg,pdf,mp3) or by using the preset extensions. You can now click 'Create Code'.

Advanced Usage

Check the 'Advanced' checkbox to reveal all of the scripts options.

Regex Filter - You can enter a regex here and only files with a URL matching this regex will be included. You do not need to include the regex with slashes.
For example:
  • file\d\.pdf

Regex Replace - You can enter a regex to find and a string to replace it with.
For example:
  • Replace \.thumb\.jpg with .jpg
  • Replace \?file=(.*) with $1

User Agent - You can specify the user agent that Wget will to identify itself. By default the code will make it use your browser's user agent.

Useful Links

Regex Tutorial

Other Scripts

If you like this script you might like my WGetDeb script.