- JavaScript 68.9%
- CSS 15.9%
- HTML 8.4%
- Jsonnet 4.6%
- Dockerfile 2.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .crow | ||
| .gitlab | ||
| kubernetes | ||
| public | ||
| scrapers | ||
| .dockerignore | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| index.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
Scanlation RSS Feed Generator
A Node.js script that runs a headless browser using Puppeteer to scrape scanlation websites (e.g. Asura Scans and Flame Comics) and generates customized RSS feeds.
Features
- Headless Browser Scraping: Bypasses basic dynamic layout rendering issues using Puppeteer.
- Direct State Extraction: Reads the hydrated Astro page components directly from the DOM, avoiding brittle HTML parsing.
- Premium Chapter Detection: Automatically identifies early-access chapters (locked under Asura+) and avoids adding them to the feed until they are publicly unlocked.
- Rich Feeds: Generates clean, standard-compliant RSS feeds (XML) with embedded cover images and direct reading links.
- Robust Chrome Auto-Discovery: Detects Puppeteer cache directories and system browsers.
Installation
Ensure you have Node.js installed (Node 18+ recommended).
-
Clone or navigate to this project folder:
cd asurascans-rss -
Install dependencies:
npm install -
Ensure Puppeteer's Chrome browser binary is downloaded:
npx puppeteer browsers install chrome
Usage
Run the script using npm:
npm start
Command Line Options
You can customize the generation by passing flags:
| Flag | Description | Default |
|---|---|---|
--out |
Output path for the generated RSS XML file | asura.xml |
--limit |
Maximum number of items in the RSS feed | 100 |
--chrome-path |
Override to a specific Google Chrome or Chromium executable | Auto-detected |
Generate a feed (default):
npm start
Running with Docker
You can build and run this application inside a Docker container to avoid installing Node.js or Chrome dependencies on your host machine.
Prerequisites
Ensure you have Docker and Docker Compose installed.
Using Docker Compose (Recommended)
-
Build and run the container:
docker compose up --buildThis will build the image, run the scraping process, and output the generated
asura.xmlfile directly into your host workspace directory. -
Run with custom options: You can override the arguments by specifying them in the command:
docker compose run asurascans-rss --out=out/asura.xml
Using Plain Docker
-
Build the Docker image:
docker build -t asurascans-rss . -
Run the container (mounting the current directory to receive the output file):
docker run --rm -v "$(pwd)":/usr/src/app/out asurascans-rss