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

Pages: 1-4041-

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.

Name: Anonymous 2009-10-25 9:44

I use Opera.  Set your default download directory to the place to save the images to.  In the links panel, type .jpg as a search term, select all, then save to download directory.  Repeat for other image formats if any.

Name: Anonymous 2009-10-25 10:00

i use an enterprise sollution

Name: Anonymous 2009-10-25 12:32

i use an non-scalable python solution

Name: Anonymous 2009-10-25 15:15

i use an enterprise-grade turnkey solution using chan-scraper best-practices, full web 2.0 compliance and performance ahead of best-in-class peers

Name: Anonymous 2010-01-16 22:34

D
D
D
D
DOUBLE NIGGER

Name: ed 2010-01-17 9:31

All these posts, and you have yet to write a version that keeps original filenames. What's up with that /prog/

$b=(board)
$t=(thread)
wget -e robots=off -nvcdp -t 0 -Hkrl 0 -I */src/ -P 4/$b/$t http://boards.4chan.org/$b/res/$t; mv 4/$b/$t/$t 4/$b/$t/thread.html

my implementation doesn't do that either

Name: Anonymous 2010-01-17 11:06

>>46
/prog/ at its finest

Name: Anonymous 2010-01-17 11:08

>>43
May we see your ENTERPRISE SOLUTION?

Name: Anonymous 2010-03-03 2:45

How do you post to 4chan using bash or curl? I think I got my shell account banned trying. :(

Name: Anonymous 2010-03-03 2:56

>>50
Fabricate a valid request.
I mean, it's a freaking web form.  An open protocol.  It tells you exactly what it wants.
You are a programmer, aren't you?

Name: Anonymous 2010-03-03 3:02

>>51
I'm an artist

Name: Anonymous 2010-03-03 3:03

>>52
Fabricate a valid request...
I mean, it's a freaking web form...  An open protocol...  It tells you exactly what it wants...
You are a programmer, aren't you...?

Name: Anonymous 2010-03-03 14:09

>>52-53
Of these two posts, >>53 is clearly the artist.

Name: Anonymous 2010-03-05 13:22

>>46
* African American

Name: pedro !KbcQ6Pzfd2 2010-07-01 19:48

what is this place?
i thought i was going to 4chan...

Name: Anonymous 2011-10-31 0:32

You don't need any external processing to get a nice copy of original page with clickable links to big images with wget. First, download images with wget limited to src directory and one level of recursion, this converts the links. Second, request the same page with page−requisites, timestamping turned on and <a> tag skipped. This processes the already downloaded file (if you're lucky), downloads and converts links to thumbnails, css and other junk.
Two wget calls do the job for most imageboards where thread URLs end with extension. On 4chan they don't. And with -E, wget does not check proper .orig file for timestamp and size and always downloads it on the second step removing the previous link conversion. You need to rewrite wget or trick it to work as intended.
The script is at http://www.0chan.ru/u/res/797.html
It can be trivially rewritten to any other shell language:
- wget -r …
- if (link has extension) copy its "threadnumber.orig" file to bare "threadnumber"
- wget -p …
- remove the .orig file (and the one you've copied, too)

Name: Anonymous 2011-10-31 2:26

>57-61
Testing...

Name: Anonymous 2011-10-31 5:52

>>63
Those posts were spam. The moderator removed them.

Name: Anonymous 2011-10-31 6:29

>>64
fuck? we have mods in this board?!

Name: Sgt.Kabu︒줟kiman䐱ꍏ 2012-05-29 0:06

>>66
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
dubs won this time
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Name: szmata 2012-10-07 13:05

>>47
very nice, thanks!

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