Direct Image Link E621/926 & e6AI

Images direct links ripper for pages with search results

As of 2023-05-09. See the latest version.

Author
Rainbow-Spike
Ratings
0 0 0
Version
2023.05.09
Created
2016-02-27
Updated
2023-05-09
Size
2.77 KB
License
N/A
Applies to



Extractor of direct media links from Glutamate and Bleach for download managers.
Its features are:
1. With filtering on of necessary tags (set variable "want", please), with filtering off of unnecessary tags ("unwanted"), with filtering off of already downloaded pictures
2. The media which are not in selection are muted heavily ("wrong", 0.1 of full opacity by default), the already downloaded ones are muted a little less ("have", 0.3)
3. To filtered media below always attributed a personal link with the name by MD5-tagging, for pinpoint control
4. At the top of the page it inserted a new field for the group list, already highlighted for copying by Ctrl+C, with two modes:
"lever = 1" inserts the reference list (enabled by default),
"lever = 0" inserts only the names of files to re-check (recommended to use together with the file manager Total Commander with the cm_CopyNamesToClip and cm_LoadSelectionFromClip commands, hung on the hotkeys)
5. Stop list of MD5-tags of already downloaded files in the "stop" parameter (not attached by default, to reduce script size). Keep your stop list separate from the script, so it doesn't get corrupted by updates!

How nice it would be if there was a normal program that eliminated the need to maintain a stop list in such a way! Here's a quick guide on how to make one:
5.1. in Total Commander, go to the folder with media, expand all subfolders - Ctrl+B, select all - *, copy the names - cm_CopyNamesToClip in the console or its hotkey
5.2. in any smart notepad (for example, Notepad++), paste - Ctrl+V, sorting - the menu Edit / Line operations / sort by alphabetical order, the dialogue of search and replace - Ctrl+H, at the bottom of the dialogue enable regular mode
5.3. regexps:
explanation
what to change
for what

trash cutting
^.*([0-9a-f]{32}).*$
\1

merge into one line
\n
', '

enclose in apostrophes
(.+)
'\1'

slicing by 10
(.{359})space
\1\n

attention, in the last regular i specifically mark "space"!
5.4. copy all text - Ctrl+A Ctrl+C, paste Ctrl+V in the script, in the "stop" parameter, inside the brackets [ ]
5.5. it is important to timely replenish the stop list with freshly downloaded stuff, so make in the folder with media a subfolder like "! reception", write it in your download manager options, and put its file names into stop list periodically, and put these files into "! already in filter" subfolder
5.6. in order to avoid repeated downloads, do not clean the downloaded files before putting their MD5 into the stop list, or save private download lists and put MD5 from them