4chan-js 中文文档教程

发布于 9年前 浏览 31 项目主页 更新于 3年前

4Chan.js thread scrapper

该项目不处于高级状态并且容易出错。 如果遇到错误,请不要犹豫,提出问题。

Install

npm install -g 4chan-js

Usage

-f : Specify a folder where you want to save your images
-e : specify a file format you don't want to download (ex: -e gif)
--noanimation : doesn't download gifs and webms
-u : url of the thread
-m : Specify file system permissions (ex: -e 777) 755 will be used by default

Example

4chan -e png -u https://boards.4chan.org/b/thread/0000000/thread

What it can currently do :

- Download all images and webms from a thread
- Exclude by one or multiple patterns
- Not much else

What will it do in the futur :

- Download depending on file size
- Easily automate scrapping
- Generation of an html page with all images

What it will never do:

- Coffee, sadly
- Scrap other websites
- Scrap entire boards

如果您有兴趣从事此工作,有问题或想对我大喊大叫(糟糕的代码和其他东西):@dupertuiseric

目前不支持 Windows

4Chan.js thread scrapper

This project is not in an advanced state and is error prone. Don't hesitate to open an issue if you encounter an error.

Install

npm install -g 4chan-js

Usage

-f : Specify a folder where you want to save your images
-e : specify a file format you don't want to download (ex: -e gif)
--noanimation : doesn't download gifs and webms
-u : url of the thread
-m : Specify file system permissions (ex: -e 777) 755 will be used by default

Example

4chan -e png -u https://boards.4chan.org/b/thread/0000000/thread

What it can currently do :

- Download all images and webms from a thread
- Exclude by one or multiple patterns
- Not much else

What will it do in the futur :

- Download depending on file size
- Easily automate scrapping
- Generation of an html page with all images

What it will never do:

- Coffee, sadly
- Scrap other websites
- Scrap entire boards

If you're interested to work on this, have questions or want to yell at me (bad code and stuff): @dupertuiseric

Currently no Windows support

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文