Coder Social home page Coder Social logo

chanimagedownloader's Introduction

ChanImageDownloader

An image downloader for 4chan and display it in a web page.

Prerequisites

Installation

Install packages with your preferred package manager, e.g. npm:

yarn/npm install

Usage

To start the server, run:

node index.js

console will show the port the server is running on.

  • Open your browser and go to http://localhost:8988 or any other port you specified in the config file.

Configuration file

module.exports = {
	host: "0.0.0.0",
	port: 8988,
	blacklist: [
		// image hashes go here
	],
	boardList: {
		vg: [
			{
				name: "Nikke General",
				prefix: "nikg",
				folderName: "Nikke",
				hidden: false
			},
            {
				name: "Granblue Fantasy",
				prefix: [
                    "gbfg",
                    "GranblueFantasy"
                ],
				folderName: "gbfg",
				hidden: false
			}
		]
	}
};
  • host: The host the server will listen on.
  • port: The port the server will listen on.
  • blacklist: An array of image hashes to be ignored.
  • boardList: An object containing the boards to be downloaded. Each board is an array of threads to be downloaded. Each thread is an object containing the following properties:
    • name: The name of the thread.
    • prefix: The prefix of the thread. (Accept Array of strings) (e.g. ["gbfg", "Granblue Fantasy"])
    • folderName: The name of the folder to be created for the thread.
    • hidden: Whether the thread should be hidden from the index page if you're hosting it to the public.

chanimagedownloader's People

Contributors

torikushiii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.