4chan-downloader icon indicating copy to clipboard operation
4chan-downloader copied to clipboard

auto download/ all images in one folder?

Open azzerzzzeqwe opened this issue 3 years ago • 3 comments

i want all the images of a certian tag to go into just one folder instead of each individual one, is there a way to do that? also is there a feature to autodownload threads in the queue text file when one appears

azzerzzzeqwe avatar Aug 15 '22 03:08 azzerzzzeqwe

This is only possible if the threads are on the same board. If you put these two lines into your queue-file https://boards.4chan.org/b/thread/12345678/mytag https://boards.4chan.org/b/thread/87654321/mytag ... then all files will be placed in a folder named downloads/b/mytag if you run the main script (inb4404.py) with the -n/--use-names option. Otherwise these "tags" will be ignored.

The other thing you're asking for is the thread-watcher.py file. Let's say you want to download every "wallpaper" thread from the /hr/ board then you'd have to run the following command:

python thread-watcher.py -b hr -q wallpaper -f queue.txt -n "HR-Wallpapers"

Right now there's one thread that contains "wallpaper" on /hr/ which is https://boards.4chan.org/hr/thread/4474136

So this script basically looks on the specified board (-b) for a search term (-q). This uses 4chan's built-in search. If the search returns something, it will look into the specified file (-f) and adds the found thread if it's not already there. It will also append the name/tag (-n) "HR-Wallpapers" to the end of the URL so that everything will be placed in the same folder. So in the end the file will contain this url: https://boards.4chan.org/hr/thread/4474136/HR-Wallpapers

Exceen avatar Aug 16 '22 09:08 Exceen

This is only possible if the threads are on the same board. If you put these two lines into your queue-file https://boards.4chan.org/b/thread/12345678/mytag https://boards.4chan.org/b/thread/87654321/mytag ... then all files will be placed in a folder named downloads/b/mytag if you run the main script (inb4404.py) with the -n/--use-names option. Otherwise these "tags" will be ignored.

The other thing you're asking for is the thread-watcher.py file. Let's say you want to download every "wallpaper" thread from the /hr/ board then you'd have to run the following command:

python thread-watcher.py -b hr -q wallpaper -f queue.txt -n "HR-Wallpapers"

Right now there's one thread that contains "wallpaper" on /hr/ which is https://boards.4chan.org/hr/thread/4474136

So this script basically looks on the specified board (-b) for a search term (-q). This uses 4chan's built-in search. If the search returns something, it will look into the specified file (-f) and adds the found thread if it's not already there. It will also append the name/tag (-n) "HR-Wallpapers" to the end of the URL so that everything will be placed in the same folder. So in the end the file will contain this url: https://boards.4chan.org/hr/thread/4474136/HR-Wallpapers

i used the cmd for the autowatcher, but it did not work. i set the board and tag i wanted and ran it. but looking in the board later i found threads with that tag that were not put in the queue list

azzerzzzeqwe avatar Aug 17 '22 05:08 azzerzzzeqwe

could you please provide an example for this?

Exceen avatar Aug 17 '22 07:08 Exceen