Skip to content
프로젝트

소개

Python3 script to continuously download all images/videos of multiple 4chan threads simultaneously - without installation

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

4chan-downloader

Python script to download all images/webms of a 4chan thread

"Buy Me A Coffee"

Download Script

The main script is called inb4404.py and can be called like this: python3 inb4404.py [thread/filename]

usage: inb4404.py [-h] [-c] [-d] [-l] [-n] [-r] [-t] [--no-new-dir] [--refresh-time REFRESH_TIME] [--throttle THROTTLE] [--backoff BACKOFF] thread/filename

positional arguments:
  thread                url of the thread (or filename; one url per line)

options:
  -h, --help            show this help message and exit
  -c, --with-counter    show a counter next the the image that has been downloaded
  -d, --date            show date as well
  -l, --less            show less information (surpresses checking messages)
  -n, --use-names       use thread names instead of the thread ids (...4chan.org/board/thread/thread-id/thread-name)
  -r, --reload          reload the queue file every 5 minutes
  -t, --title           save original filenames
  --no-new-dir          don't create the `new` directory
  --refresh-time REFRESH_TIME
                        Delay in seconds before refreshing the thread
  --throttle THROTTLE   Delay in seconds between downloads in the same thread
  --backoff BACKOFF     Delay in seconds by which throttle should increase on 429

You can parse a file instead of a thread url. In this file you can put as many links as you want, you just have to make sure that there's one url per line. A line is considered to be a url if the first 4 letters of the line start with 'http'.

If you use the --use-names argument, the thread name is used to name the respective thread-directory instead of the thread id. You can specify this name yourself, e.g.: https://boards.4chan.org/a/thread/12345678/this-is-my-thread-name

Requirements

This script can be called using the default python3 libraries. Only if you want to use the --use-names parameter you have to install the dependencies from the requirements.txt-file. This can be done by calling pip install -r requirements.txt.

Thread Watcher

This is a work-in-progress script but basic functionality is already given. If you call the script like

python thread-watcher.py -b vg -q mhg -f queue.txt -n "Monster Hunter"

then it looks for all threads that include mhg inside the vg board, stores the thread url into queue.txt and adds /Monster-Hunter at the end of the url so that you can use the --use-names argument from the actual download script.

Legacy

The current scripts are written in python3, in case you still use python2 you can use an old version of the script inside the legacy directory.

TODO

fix duplicated filenames when running with --title

관련 프로젝트 살펴보기

불러오는 중…