Politics, Programming and Possibilities
12 Feb
I wrote a ubiquity script that lets you download just about anything on the page you’re visiting, for example images and javascript files. It’s called “save-all” “download-files” and it’s available as a gist on github. One of my classes at university has a “resource page” where they provide all of the datasets for our statistics homework; however, you have to click on each one of them (stored in “.dat” format) to get them all! What a waste of time. So instead of clicking on each one, I wrote the following script. Here’s how you would use it:
download-files .*png$ ~/Desktop/Images
download-files dat$ ~/Desktop/DataFiles
download-files .*
Update: Changed the name of the command from “save-all” to “download-files”.
6 Responses for "Ubiquity Script to Download File Patterns on Your Page"
[...] will surely come handy sooner or l8r-Ubiquity Script to Download File Patterns on a Web Page http://blog.inquirylabs.com/2009/02/12/ubiquity-script-to-download-file-patterns-on-your-page/ (corrected link) « előző | Peter Szinek — 2009. 02. 12. [...]
Beautiful command, it is very useful for me, thank you
Only a little question, is it possible to remove the escaping of spaces in preview:
http://img6.imageshack.us/my.php?image=ubdownloadsd8.png
Sandro
@gialloporpora: Fixed, thanks. (see gist for latest update)
Thank you for your script, very useful
Sandro
[...] me off to gmail where I can email something to my brother. Or I recently created the download-files command for Ubiquity that lets me download all of the images on a page, for example. Or [...]
[...] added a few improvements to the Ubiquity “download-files” command. It now checks everything on the page, including frames and iframes. Also, it walks [...]
Leave a reply