1
0
Fork 0
A tool for scraping files from imageboards’ threads.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Alexander Andreev 245e33f40d
README updated. lolifox.cc removed. Option --skip-posts added.
1 year ago
scrapthechan Copyright, date, and version are updated. 1 year ago
.gitignore Initial commit with all the files. 2 years ago
CHANGELOG.md Updated CHANGELOG with version 0.5.0. 1 year ago
COPYING Initial commit with all the files. 2 years ago
Makefile Makefile updated to version 0.5.0. 1 year ago
README.md README updated. lolifox.cc removed. Option --skip-posts added. 1 year ago
setup.cfg Lolifox removed. Development Status classifier is changed to Alpha. Python 3.7 classifier left to represent oldest supported version. 1 year ago
setup.py Initial commit with all the files. 2 years ago

README.md

This is a tool for scraping files from imageboards' threads.

It extracts the files from a JSON representation of a thread. And then downloads 'em in a specified output directory or if it isn't specified then creates following directory hierarchy in a working directory:

<imageboard name>
|-<board name>
  |-<thread>
    |-[!op.txt]
    |-...
  |-...

Usage

scrapthechan [OPTIONS] (<url> | <imageboard> <board> <thread>)

<url> -- URL of a thread.

<imageboard> <board> <thread> -- imageboard name, board name and thread ID separately. E.g. 4chan b 1100500.

-o, --output-dir -- output directory where all files will be dumped to.

-N, --no-op -- by default OP's post will be saved in a !op.txt file. This flag disables this behaviour. An exclamation mark ! in a name is for so this file will be on the top of a directory listing.

-S <num>, --skip-posts <num> -- skip given number of posts.

-v, --version prints the version of the program.

-h, --help prints help for a program.

Supported imageboards

TODO

  • Sane rewrite of a program;
  • Thread watcher.