Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

DTA! - Suicidegirls.com

Adds hidden links to enable use of DownloadThemAll! on Suicidegirls.com. (Requires Membership)

This script invisibly enables DTA! usage.
NOTE: Download the LINKS with only "Images" checked.




Jan 16, 2007
Nate 2 User

It be nice if it persevered whitespace...

 
Jan 16, 2007
Nate 2 User

Try this instead:

#!/usr/local/bin/bash
newdir=`echo $1 | cut -d/ -f5,7 | sed -e 's/\+/\\ /g' | tr '[:upper:]' '[:lower:]'`
mkdir -p "$newdir"
cdir=`pwd`
cd "$newdir"

ua='Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0'
cookies=/dev/fs/C/Documents\ and\ Settings/Nate/Application\ Data/Mozilla/Firefox/Profiles/0o2xxqmh.default/cookies.txt

urls=`curl --user-agent "$ua" --cookie "$cookies" $1 | grep 'pics\[[0-9]*\] = [^,]*' | sed -e 's/pics\[[0-9]*\] = new Array(\"//g' -e 's/\//http:\/\/suicidegirls.com\//1' -e 's/\"//g' -e 's/,.*$//g' -e 's/[[:space:]]//g'`
wget --wait 3 --random-wait --load-cookies "$cookies" -U"$ua" $urls
wget_cleanup.py

cd "$cdir"

where wget_cleanup.py is:

#! /bin/env python
import os, shutil, time

NEW_PLACE=r'/dev/fs/D/sfuhome/.badwget/'

def fix_up(f):
shutil.move(f[:-2], '%s%f_%s' % (NEW_PLACE, time.time(), f[:-2]))
goodfile = 1
for i in range(2, 10):
try:
os.stat("%s.%d" % (f[:-2], i))
shutil.move("%s.%d" % (f[:-2], i - 1), '%s%f_%s' % (NEW_PLACE, time.time(), f))
except:
goodfile = i - 1
break
os.rename("%s.%d" % (f[:-2], goodfile), f[:-2])

for f in os.listdir('.'):
if f.endswith('.1'):
fix_up(f)

the whole shebang runs off of the gallery url. the only downside is that you must use the html gallery, not the flash one.

You could comment on this script if you were logged in.