Script Summary: Click button and generate a list of direct image link urls for all images for a users gallery.
2013-02-06 Fixed some code that would cause a bug on a browse search page. Removed XPath code, using querySelector now.
2012-04-12 Updated include/match url list to include favorites pages.
If you use it, like it, don't like it, have suggestion for feature, bug report, just want to say thanks leave a comment. Thank you.
I originally wrote this for a friend who wanted to download all images for a certain artist. The first version is a bit slower as it uses a" fetch each image page" method and parses out the direct download link for each image page. I have since switched to fetching and parsing the XML from the deviantART backend server which sped up the whole thing a ton.
Basic usage would be: browse to artist gallery/search query/browse category of choice, click the "Get URLs for Gallery" button, wait a few then copy/paste the url dump in the text box into download manager of choice. If you want to stop it from fetching links at some point and display what its acquired so far just click the button again and it will abort. It will start from the current page and work downward so if you want to get a "whole" gallery make sure you start on page 1. This was by design so if you aborted somewhere in the middle you can skip the image you stopped at and start up again from there.
Word of caution: Be careful when using on a gallery that has many many images, for example loading the 'Digital Art' category and clicking the button will fetch over 500,000 urls and eventually will freeze up FireFox or crash the Chrome thread.
If looking at the base browse url in newest mode clicking the button will only ever give you the newest 8hrs of images (typically about 9-10 images). This is a DA server issue. If you really want to go crazy get the first version and it'll fetch in page order whatever you're looking at. Seems this behavior has changed.