d175d6 No.1914 [View All]
Here's something I did to make copying individual booru tags easier. hydrus is good with booru browser but its page downloader doesn't read tags. And sometimes you just wanna quickly add tags to an individual image.
So this tamper/greasemonkey script will add a button and a key bind to booru posts and the Illustration2Vec demo site to copy all tags on the page including their schemas and rating. Then you can just right click your image in hydrus > manage file tags > paste tags > apply. The whole process takes about 5 seconds.
github.com/JetBoom/boorutagparser
4 posts omitted. Click [Open thread] to view. ____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.1936
Sankaku has some images the others don't, but the script doesn't work on it.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.1938
>>1936
Update 1.0.4: All sites and their tag schemas on the hydrus booru list now work.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.1939
>>1938
1.0.5: added options menu for iv2 confidence rating and copy sound url.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.1942
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.1943
Does anyone know of an option somewhere to automatically add the preferred tag instead of spawning dialogs when pasting multiple tags, by the way?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.1951
I put in nhentai for 1.0.6. They have a nice json page so it also works when viewing individual images.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2170
1.1.0 is here with a real nifty feature: the ability to download an image and its tags to a bulk import folder. So you can now press a button (or a hotkey, I set it to backslash by default) and it will download the full-size image and its tags to your disk. Then you can just drag the entire folder on to hydrus and it will import every image and their tags at one time. It saves A LOT of time so instead of 5 seconds per image wasted it's more like 5 seconds total at the end of your browsing session.
This utilizes the new r194 ability to parse image.jpg.txt files. The feature requires a separate sort of daemon server to be ran in the background made in node.js (web addons have real limited access to your disk). There's instructions that even a retard can understand if you want to get that working.
https://github.com/JetBoom/boorutagparser
https://github.com/JetBoom/boorutagparser-server
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2183
>>2170
Holy shit bro, you are a lifesaver. Before this, my process of downloading an individual image involved getting its md5 and then searching "md5:<hash>" on hydrus's downloads page.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2193
>>2183
And I just realized that Hydrus' automatic import folders doesn't yet support txt file imports.
I'll need to either figure out a quick way to export the images with their md5 filenames, or just redownload everything.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2214
>>2170
So, im too retarded to map the shortcut properly because of problems with the different layout.
Is it possible to change the key?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2228
>>2214
Holy shit, im really retarded. i just had to look into the script.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2246
>>2170
Great tool! Thank for supporting paheal as well, however "download with tags" doesn't work there because the doDownload function isn't able to find the link to the image.
In case anyone is interested in a fix, with my very limited coding knowledge I managed to do it.
I added this line, directly under the first query in the doDownload function:
if (!a) var a = document.querySelector('img[src*="/_images/"]');
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2248
I don't suppose there's a way to shortcut "paste tags" and "accept" to get this down to keystrokes only essentially? Otherwise, I'll just make an AHK script and do it a dirty way.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2249
>>2248
Use the server he links to download the image and its tags in in a .txt file. Setup the import folder as an import folder in hydrus. Then you can avoid having to manage tags within hydrus itself, for the most part
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2250
>>1914
Ever thought about using pm2 to have the server run in the background instead of a constantly-open command window?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2257
>>2249
Nifty, but I needed what I mentioned for existing files in Hydrus that were untagged. The way I'm doing it now is reverse image searching and AHKing the tags in, the server method would create duplicates.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2261
The "download with tags" button doesn't work on some boorus (http://vidyart.booru.org/ as an example). I think it's because they don't have a download button and just post the original file.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2273
>>2246
>>2261
Fixed these in 1.1.2
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2276
>>2273
Thanks for the fix!
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2322
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2323
>>2170
Do you know how I might go about getting boorutagparser-server running in Arch?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2324
>>2323
# pacman -S npm
$ npm install boorutagparser-server
$ node node_modules/boorutagparser-server
This will install boorutagparser-server in the present working directory into a folder named node_modules along with all it dependencies hence the final command. There's probably a way to add node_modules to path or something but I'm not familiar enough with node.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2325
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2492
would it be possible to add more configurations to where downloaded files are sent based on url?
For instance, instead of one large to_import folder, it might be nice to send downloaded images to a folder matching the website they're from. That way, I can easily configure hydrus to add a furry tag to everything from e621, and so on.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2502
>>2492
Look for the 'explicit tags' button in the import options - tags panel on subscriptions and downloader pages. This lets you add specific tags to everything that comes in through that stream. You can set site-specific default values for these as well, under file->options->default tag import options. Let me know if it doesn't work for you.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.2503
>>2502
Sorry, I already know about that. This has to do with the downloader script OP made, not hydrus.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.3104
How do I make it not copy the rating of files?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.3221
Could the tag script be updated to include support for downloading tags from derpibooru.org? I managed to edit the script myself a little and got it to read the tags (though I'm not sure if it works 100%) with this code:
// derpibooru-like
insertTags(tags, 'span.dropdown.tag > a', '');
I am at a loss on how to edit the script to download the images too, the script seems to be latching onto this url: https://derpibooru.org/images/[imageID#]/tag_changes
and just creates a text file.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.3226
The script doesn't seem to pull the original/png versions of images from yande.re, it only gets the larger jpg version.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.3235
>>3221
Here is an updated / fixed script from another thread that works with derpibooru. It should grab all tags regardless of user setting (watch, spoiler, hide). You can remove those lines if you want to not grab those tags.
http://pastebin.com/69ruSKTv
Credits to this anon for creating a working script: https://8ch.net/hydrus/res/2231.html#3220
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.4067
For some reason the download with tags/copy tags buttons aren't showing up in chromium reliably. They seem to show up after several minutes sitting on the page, but tampermonkey says nothing is wrong.
Chrome doesn't have this problem though, it loads immediately.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.4176
Here's two changes I made that many people might find useful
1. Don't download original image if over 3 MB
https://ghostbin.com/paste/8oncf
2. Don't redownload existing images
https://ghostbin.com/paste/sf6jx
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.4336
I can't seem to copy tags/download pics from nhentai.net. When I click the buttons nothing happens. Does this happen for anyone else?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.4707
I notice that the tag parser script can't download webms (or presumably other video files) from sites like e621 and others or I broke my script from being able to do this. Could someone fix up or post the original code needed to get the tag parser script to grab webms from these sites?
Thanks!
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.4711
>>4707
Find the doDownload() function and replace the line beginning with "var a =" with this:
http://pastebin.com/5y9mWYNe
That should fix it.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.4712
>>4711
That worked! Thank you anon :D
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.4742
>>4711
I updated the script on gh.
I don't check this thread really ever but merging pull requests are like 3 taps on my phone if people have an account.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.4751
>>4336
nhentai doesn't work for me either. It would be great to get it working again.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.4813
Holy balls this is amazing, it helps so much, thank you!
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
d175d6 No.5448
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
90735f No.6801
Script wasn't working for me on paheal. Looks like it's finding the button for the source before the actual image. Managed to fix it by changing
var href = a.src || a.href;
to
var href = a.src || a.href || a.action;
I guess the other way to fix it would be to remove the "\_images\" query and go by id or exclude forms in the search
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
89d098 No.6802
I get >562 files were parsed successfully, but 527 had unsupported mimes when importing the import_me folder and none of the imported pictures have tags when i check in manage, am i doing something wrong here?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
89d098 No.6803
>>6802
Sorry i'm retarded there's a checkbox i didn't click.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
bcb493 No.8454
derpibooru broke again because they changed the title of the image download link. Find "a[href*="/img/download"][title="whatever it was before I changed it"]" and change to "a[href*="/img/download"][title="Download (short filename)"] "
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
bcb493 No.8549
>>8454
Aaand they changed it again: "title="Download (no tags in filename)". Jesus how many times do they need to fuck with this?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
893d89 No.8638
demo.illustration2vec.net seems pretty dead, is there a mirror around?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
1fc057 No.9703
Is there any way to change the output filnename of the downloaded file & accompaning txt?
For example could i make it grab the post number as the filename based on the site? Like, from Sankaku it would be "S ####", Danbooru "D ###", Yandere "Y ###", or is it just not possible?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
1bb151 No.9780
>>9703
Sure it's possible, but you'd have to edit the script. I did some minor changes myself but I'm not too familiar with the code/language so I couldn't do it for you without some effort.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
1f5ecd No.9810
>>9780
Do you perhaps know how to at least make it download the original filename? My idea of grabbing the post number was probably overkill, with danbooru and yande.re it'd just be fine to have the original name, but i have no idea how do edit the script to tell it to stop the renaming function
I mean, i think i've even found the line in the script with "var filename", but i don't know what to do with it
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
a2cc1d No.9890
Tag parser doesn't get meta tags currently, any plans for this?
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.