DEV Community

Jack H. Peterson
Jack H. Peterson

Posted on

curl Multiple Files

Downloading resources at multiple URLs.

curl "example.com/path/{bravo, alpha, charlie}.html" -o "example/#1.html"
Enter fullscreen mode Exit fullscreen mode

Will result in:

example/bravo.html
example/alpha.html
example/charlie.html
Enter fullscreen mode Exit fullscreen mode

Easy way to get all of the links on a particular page (ie: directory)

Hop in the dev console on the page and paste:

copy(document.links)
Enter fullscreen mode Exit fullscreen mode

This will copy an array of all of the links on the page into clipboard.

Discussion (0)