Skip to content

Instantly share code, notes, and snippets.

@guipn
guipn / gist:888789
Created March 27, 2011 00:30
Script to download from a webpage all files the extensions of which are among the ones listed by the user.
#
# Downloads all files directly linked within a webpage that are of a given list of extensions.
#
# The webpage in question is to be provided as the first argument for the program.
# The formats shall be specified as a single, second argument by the user, like so: "pdf txt tar.gz"
#
# If a third argument is given, it will be used as a target folder in which to save downloaded files.
#
# example: getfiles.pl http://google.com "gif js"
#