Giter Site home page Giter Site logo

ndbiaw / anchira-watcher-downloader Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 1.0 89 KB

Script that will downloads the entire manga from anchira.to and automatically downloads the latest manga if available.

License: GNU General Public License v3.0

JavaScript 100.00%
hentai-downloader hentai-scraper manga-downloader manga-scraper anchira

anchira-watcher-downloader's Introduction

anchira-watcher-downloader

Script that will downloads the entire manga from anchira.to and automatically downloads the latest manga if available.

How to use

This script is divided into 3 parts, for 3 purposes:

  • Get all manga URLs on anchira.to
  • Download manga from the list of available URLs
  • Watch anchira.to and automatically download the latest manga

This script requires node.js v18 or later, and pupperteer version 21 or later.

Tested on Windows 11, Nodejs 18.18.2, Puppeteer 21.4.0. Download Nodejs at: https://nodejs.org/en After installing nodejs (remember to select the add to PATH option), install Puppeteer using the following command:

npm i puppeteer

Get all manga URLs on anchira.to

You just need to run build.js with the following command:

node build.js

Download manga from the list of available URLs

Put the list of URLs you need to downloadl into the urls.txt file and run scrape.js with the following command:

node scrape.js

Watch anchira.to and automatically download the latest manga

Watch anchira.to and automatically download the latest manga. You can add a download exclusion list to the downloaded.txt file. To run the watcher, use the command:

node watcher.js

anchira-watcher-downloader's People

Contributors

ndbiaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kadantte

anchira-watcher-downloader's Issues

Filter by tag

Hi wonder if your script can filter the url by tags?

I hate tags like ntr, yaoi, etc... so I don't want to download doujin with those tags

HELP

Can someone explain to me how to use it since I'm new to this kinda stuff

timeoutError

image E:\Anchira\node_modules\puppeteer-core\lib\cjs\puppeteer\common\WaitTask.js:60 this.#timeoutError = new Errors_js_1.TimeoutError(`Waiting failed: ${options.timeout}ms exceeded`); ^

TimeoutError: Waiting for selector article failed: Waiting failed: 30000ms exceeded
at new WaitTask (E:\Anchira\node_modules\puppeteer-core\lib\cjs\puppeteer\common\WaitTask.js:60:34)
at IsolatedWorld.waitForFunction (E:\Anchira\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Realm.js:35:26)
at PQueryHandler.waitFor (E:\Anchira\node_modules\puppeteer-core\lib\cjs\puppeteer\common\QueryHandler.js:180:95)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async CdpFrame.waitForSelector (E:\Anchira\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Frame.js:511:21)
at async CdpPage.waitForSelector (E:\Anchira\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Page.js:1483:20)
at async scrapePage (E:\Anchira\build.js:5:3)
at async scrapeSite (E:\Anchira\build.js:28:5)

how to fix this

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.