auto download/ all images in one folder?
azzerzzzeqwe opened this issue · 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
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
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 nameddownloads/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
could you please provide an example for this?