powershell script to download images from 4chan.org threads, this version is a fork of https://github.com/kumamonishe/ps-4chan-dl with fixes and additional paramaters added in the future
- windows 10/11
- you may need to change execution policy before using this script. to do so run the powershell console as admin user and run command
Set-ExecutionPolicy Unrestricted
. change it back toRestricted
orRemoteSigned
after using the script.
- find a cool thread in 4chan.org
- copy its url into clipboard
- run the script. it will check the clipboard for the link to your thread and dowload images automatically. if the script does not find a valid url to 4chan thread, it will prompt you for such url
- script saves images in separate directories for each thread. it will create directories in the current directory. the name of new directory will be truncated name of the thread (i.e. content of
<title>
tag). if the directory already exists, script will prompt you for another name. - script downloads .jpg, .png and .gif images and also webm files, but please keep in mind that webms are big and donwloading of a long thread may take a while
-dest
is optional. you can specify another directory for files to download in this parameter. path must be absolute. please do not use special symbols in -dest path, specificaly [ and ], powershell's Invoke-WebRequest does not porcess them correctly. there will be a workaround later