Project

General

Profile

Wiki » History » Version 3

Komorek, Kamil, 27.11.2016 10:46

1 1 Komorek, Kamil
h1. dex_chan - 4chan and any chan board mass-image downloader
2
3
That app allows you to download all images from any 4chan-similar board.
4
It's universal downloader that uses included boards.xml file, which allow you to specify any internet-public site and any chan. 
5
Boards.xml may be edited by You if you need any other chan to support. Deleting file will download default from my server.
6
Supports autoupdate for boards file.
7
8
!http://i.imgur.com/R4ROy9l.jpg!
9
10
*Features:*
11
12
* Mass image-videos-files download from all topics
13 2 Komorek, Kamil
* Flexible support - read below and edit boards.xml file if your fav chan is not supported
14 1 Komorek, Kamil
* Multithreaded downloader
15
* "Inteligent" queue
16
17 3 Komorek, Kamil
Language: English
18 1 Komorek, Kamil
19
Have fun!
20
21
h2. Boards changelog
22
23
* 201505092200 - fixed 4chan patterns, 
24
* 201211302330 - first initial version, + 7chan support
25
26
*How to update?* Just delete boards.xml and restart application.
27
28
h2. Requirements
29
30
 * It's written in C# .NET 3.5, may require latest M$ Windows updates and redistributed packages
31
 * It requires internet connection
32
33
h2. Download
34
35 3 Komorek, Kamil
Current Version: 1.2
36 1 Komorek, Kamil
Latest: http://dl.dexterxx.pl/pr/dex_chan/dex_chan.exe
37
38
h2. More to read:
39
40
* http://blog.dexterxx.pl/2012/12/01/hello-grudzien-dex_chan-v1-1/
41
* http://blog.dexterxx.pl/2015/02/16/wypiem-platforme-projektow-dexterxxprojects-bo-nie-mialem-cierpliwosci-do-drupala/
42
43
h2. Boards.xml quick tutorial
44
45
Open @boards.xml@, best is learn by example, so look at 4chan definition:
46
47
<pre><code class="xml">
48
<site>
49
	<name>4chan.org</name>
50
	<!-- Below is first-page board link look, eg.:
51
		http://boards.4chan.org/g/1
52
		http://boards.4chan.org/tv/1
53
		etc.,
54
		(first page may sometimes not work, but if you try /g/3 (as 3rd page) so you know that is good)
55
			@BOARD@ and @PAGE are required to specify. -->
56
	<board_url>http://boards.4chan.org/@BOARD@/@PAGE@</board_url>
57
	<!-- Below is link to thread, eg.:
58
		http://boards.4chan.org/g/thread/57704107
59
		looks similar? g - @BOARD@ and 57704107 is @TID@ - thread id
60
	... -->
61
	<board_url_topic>http://boards.4chan.org/@BOARD@/thread/@TID@</board_url_topic>
62
	<!-- Below is url to target image (not thumbinal), eg.:
63
		http://i.4cdn.org/g/1480199776841.jpg
64
		so g - @BOARD@, and 14801... is @FILE@ - easy?
65
	-->
66
	<board_url_img>http://i.4cdn.org/@BOARD@/@FILE@</board_url_img>
67
	<!-- Now more complex... below is regexp which allows app to recognize what is what in board
68
		MATCHED must be in first () - that may be little difficult, sorry for that
69
	-->
70
	<patterns>
71
		<!-- Link to topic (often it's "Reply" pattern) - it resolves to @TID@ -->
72
		<reply><![CDATA[<a href=\"thread/([0-9]{2,15})/?[a-zA-Z0-9-]+?\".?(class=\"replylink\")?>Reply</a>]]></reply>
73
		<!-- Resolves to @FILE@ - only filename - 1480199776841.jpg from our above example
74
			IMPORTANT: first match must resolves to filename and second match to extension
75
			so: 1480199776841.jpg -> 1: (1480199776841) 2: (jpg)
76
			dunno why i did that in past ;)
77
		-->
78
		<image><![CDATA[<a class=\"fileThumb\" href=\"//i\.4cdn\.org/[a-zA-Z0-9]+/([0-9]+)\.([a-zA-Z0-9]{2,5})\" target=\"_blank\">]]></image>
79
	</patterns>
80
	<!-- Below is boards on that chan
81
		Values are injected into @BOARD@ variable.
82
		-->
83
	<boards_list>
84
		<b>a</b>
85
		<b>b</b>
86
		<b>c</b>
87
		<b>d</b>
88
		<!-- ... -->
89
		<b>vp</b>
90
		<b>wsg</b>
91
		<b>x</b>
92
	</boards_list>
93
	<!-- That's all - easy as fuck, is it? -->
94
</site>
95
</code></pre>
96
97
98
h2. Changelog
99
100 3 Komorek, Kamil
2016-11-27 / v1.2
101
* + Fully english version
102
* + Better support about new versions of app
103
* * Updated project links
104
* ! MS VS 2013 Compilation
105
106 1 Komorek, Kamil
2012-12-01 / v1.1
107 3 Komorek, Kamil
* + Support for boards.xml!
108 1 Komorek, Kamil
* + Version information
109
* * Better stability 
110
* * Bugfixes
111
112
2012-06-24 / v1.0
113
* + First initial version
114
* + Supports only 4chan