DTA! - Suicidegirls.com

By InsaneNinja Last update Nov 13, 2006 — Installed 963 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 3 posts, 2 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Nate 2 User

It be nice if it persevered whitespace...

 
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.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel