Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

xChan Directory Dumper

Name: Forced Anon 2007-04-10 23:59 ID:CEawvuLc

So I've found this nifty program that makes spamming easy.
Is there a program that makes it easy to save the images of a thread? Save page saves thumbs, but I mean the actual full images.

Name: Anonymous 2007-04-11 3:35 ID:2YA78geL

Firefox extension DownThemAll. Caption: "Thread images", pattern: "/src\/[0-9]/". Right-click DownThemAll..., pick "Thread images" from "Inclusive Patterns", then "Start!".

Name: Anonymous 2007-04-11 11:21 ID:yvgv8GtS

>>3
bash is win

Name: Anonymous 2007-04-11 11:38 ID:sR426u2C

>>5
sh, bitch.

Name: Anonymous 2007-04-11 11:41 ID:u0dfp/az

>>3
wget can do all that itself without grep, sed, and sh.

Name: Anonymous 2007-04-11 12:15 ID:LlmTSz2y

not4chan grab, although how is this related to /prog/?

Name: Anonymous 2007-04-11 12:19 ID:KIQ69WDU

>>5
sh/bash is made of ugly and hack, and it's the single language on Earth with a worse, messier, shittier syntax than Perl.

Write a proper program, not a "script". A proper program doesn't need to be slower to write, and it's definitely faster to read and debug than a shitty hack; also n times faster as it doesn't spawn processes to do every shit.

Name: Anonymous 2007-04-11 12:22 ID:wVce39jJ

>>9
NO U. You write the proper program, and also remember to tell us how long it took.

Name: Anonymous 2007-04-11 12:40 ID:H/sBWe6q

>>9
Why write a standalone program for something that can be accomplished in one line in a console?

I smells a winfag. A little bitter that this doesn't work in your crippled excuse for an operating system?

Name: Anonymous 2007-04-11 13:14 ID:O6KFPqSm

>>9
LAWL NO

High level language for high level tasks, motherfucker.

Name: Anonymous 2007-04-11 15:01 ID:u0dfp/az

wget -N -nd -P "DIRECTORY TO PUT THE IMAGES IN GOES HERE" -U Mozilla/5.0 -r -l 1 -A.jpg,.png,.gif -X/b/thumb/,/b/src.cgi/ -I/b/res/,/b/src/ -e robots=off "THREAD URL GOES HERE"

lol proper program

Name: Anonymous 2007-04-11 16:02 ID:oG5i/gfU

HASKELL PLZ

Name: Anonymous 2007-04-11 16:03 ID:O6KFPqSm

Real men code only in assembly.

GTFO nubs. bash is nothing but BS HAX.

Name: Anonymous 2007-04-11 19:49 ID:u0dfp/az

real men don't write code to do what there is free software available to do.

Name: Anonymous 2007-04-12 5:22 ID:Fp2IQOvH

>>11
Winfag? Nonono, not at all. You can call me Python forced indentation fag, but not Winfag. Though Python scripts work flawlessly on any OS (save for the system calls non-Unix OSes may lack).

>>12
Who the fuck said proper program meant low-level? If you think high-level programming is about "(!#/)%=)#("%/)=", you're the fag.

>>13
Ok, if you can accomplish that with wget alone, then a proper program won't be necessary, though a simple shell script that does variable substitution will be nice. As soon as you need to do anything else in that shell script, you should move to a real programming language. High-level, of course.

Name: Anonymous 2007-04-12 10:22 ID:nNvR+qXx

>>11
Mingw motherfucker, do you use it?

Name: Anonymous 2007-04-12 10:42 ID:TRjg+QGq

>>17
haha!
No wonder he wants to hug his python and write 60 lines of code to do a one line task!

ONE WORD FOR YOU, FORCED INDENTATION OF THE CODE, THREAD OVER.

Name: Anonymous 2007-07-13 0:03 ID:KAmAeaFK

>>13
win

Name: Anonymous 2007-07-14 2:52 ID:zeIHn54T

pls no force indention of cod

Name: Anonymous 2007-07-14 5:00 ID:7qMv77Ff

@ECHO OFF
wget -N -nd -P "%1" -U Mozilla/5.0 -r -l 1 -A.jpg,.png,.gif -X/b/thumb/,/b/src.cgi/ -I/b/res/,/b/src/ -e robots=off "%2"

A HORRIBLE BASTARDIZATION OF BATCH AND WGET

useage: save as thingy.bat, use like this
1) c:>thingy.bat !DIRECTORY GOES HERE! !URL GOES HERE!
2) commit suicide.

Name: Anonymous 2007-07-14 5:42 ID:Heaven

You can do it all in pure bash with bash socket code.

Name: Anonymous 2007-07-14 11:16 ID:eKOycvwT

>>22
A slight change to your "script" would be
wget -N -nd -P "%~1" -U Mozilla/5.0 -r -l 1 -A.jpg,.png,.gif -X/b/thumb/,/b/src.cgi/ -I/b/res/,/b/src/ -e robots=off "%~2"

This removes the quotes around the command line variables, so you can have spaces in your directory I.E. "c:\documents and settings\newb\my docments\my pictures\4chan\furfag_thread"

Thus your command line command would be:
thingy.bat "directory with spaces" http://img.4chan.org/b/res/32946752.html

Name: Anonymous 2008-08-29 14:10

DSFARGEG

Name: Anonymous 2008-08-29 16:23

>>17
So, I guess that we need to make a combination fork, knife, spoon to eat with since having 3 separate tools that you switch back and forth with is too...inefficient?

Name: Anonymous 2008-08-29 17:15

>>23

(echo -en "GET /g/res/$TNUM.html HTTP/1.0\r\nHost: zip.4chan.org\r\nUser-Agent: Mozilla/5.0\r\n\r\n" 1>&3 & cat 0<&3) 3<> /dev/tcp/zip.4chan.org/80 | sed -e '1,/^$/d' -n -e 's@.*/g/src/\([0-9]*\.\(jpg\|png\|gif\)\).*@\1@pg' | xargs -I '{}' bash -c '(echo -en "GET /g/src/{} HTTP/1.0\r\nHost: zip.4chan.org\r\nUser-Agent: Mozilla/5.0\r\n\r\n" 1>&3 & cat 0<&3) 3<> /dev/tcp/zip.4chan.org/80 | (read i; while [ "$(echo $i | tr -d "\r")" != "" ];do read i; done; cat) > {}'


Your mileage may vary.

Name: Anonymous 2008-08-29 19:47

Bash is kiddy shit.
Start using a real shell, like zsh already.

Name: Anonymous 2008-08-29 22:56

I second zshzsh is the GNU Emacs of shells.
Also, sage.

Name: Anonymous 2008-08-29 23:49

I prefer tcsh because it comes with the FreeBSD base distribution.

Name: Anonymous 2008-08-30 0:12

I prefer PowerShell because I'm an OOP obsessed maniac who loves Microsoft.

Name: Anonymous 2008-08-30 8:28

I prefer DOS because I'm oldskool.

Name: Anonymous 2008-08-30 8:33

I prefer rc because rc is a command interpreter for Plan 9 that provides similar facilities to UNIX’s Bourne shell, with some small additions and less idiosyncratic syntax.

http://thread.gmane.org/gmane.os.plan9.general/44783

Name: Anonymous 2008-08-30 8:55

>>29
No unicode makes it slightly fail, though.

Name: Anonymous 2008-08-30 9:54

>>29
You say that like it's a good thing.

Name: Anonymous 2008-08-30 9:58

>>33
I lol'd at people falling for a troll called ``Eris Discordia''.

Name: Anonymous 2008-08-30 10:48

>>34
No unicode
Use 4.3.4.

Name: Anonymous 2008-08-30 16:17

>>37
I am, but when I try to press æ it just makes nasty noices.
(Using urxvt.)

Name: Anonymous 2008-08-30 18:50

>>38
Normally you have to do more than just run urxvt to get unicode support (ie, setting LANG in your environment and choosing a font which has the appropriate glyphs).

Name: Anonymous 2008-09-01 7:02

>>39
Ah, LANG wasn't set because of some reason.

Thanks.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List