No description
  • JavaScript 68.9%
  • CSS 15.9%
  • HTML 8.4%
  • Jsonnet 4.6%
  • Dockerfile 2.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nogweii 650a902e80
All checks were successful
ci/crow/push/container Pipeline was successful
ci/crow/push/deploy Pipeline was successful
clean up some comments
2026-11-08 17:07:13 -07:00
.crow clean up some comments 2026-11-08 17:07:13 -07:00
.gitlab Configure writeable emptyDir scratch volumes for read-only filesystem support in Kubernetes 2026-06-10 10:32:00 -07:00
kubernetes clean up some comments 2026-11-08 17:07:13 -07:00
public refactor: extract CSS and HTML into separate files under public/ 2026-06-20 12:50:02 -07:00
scrapers fix: resolve scraping failures inside container by adjusting progressive scroll and adding request interception to prevent ad redirects 2026-06-10 13:13:58 -07:00
.dockerignore Wrap application as a Docker container with docker-compose support 2026-06-10 07:36:32 -07:00
.gitignore Initial commit 2026-06-10 07:15:02 -07:00
.gitlab-ci.yml Disable default Auto DevOps test job in GitLab CI 2026-06-10 09:06:37 -07:00
docker-compose.yml Remove file-writing support and serve RSS feeds purely from memory 2026-06-10 08:37:42 -07:00
Dockerfile fix: resolve scraping failures inside container by adjusting progressive scroll and adding request interception to prevent ad redirects 2026-06-10 13:13:58 -07:00
index.js refactor: extract CSS and HTML into separate files under public/ 2026-06-20 12:50:02 -07:00
package-lock.json Update Puppeteer to v25.1.0 and approve install scripts 2026-06-10 09:51:06 -07:00
package.json Update Puppeteer to v25.1.0 and approve install scripts 2026-06-10 09:51:06 -07:00
README.md Remove user and assistant references 2026-06-10 08:41:38 -07:00

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).

  1. Clone or navigate to this project folder:

    cd asurascans-rss
    
  2. Install dependencies:

    npm install
    
  3. 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.

  1. Build and run the container:

    docker compose up --build
    

    This will build the image, run the scraping process, and output the generated asura.xml file directly into your host workspace directory.

  2. 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

  1. Build the Docker image:

    docker build -t asurascans-rss .
    
  2. Run the container (mounting the current directory to receive the output file):

    docker run --rm -v "$(pwd)":/usr/src/app/out asurascans-rss