Skip to content

sample sitemap generator for spa by scraping with puppeteer

Notifications You must be signed in to change notification settings

komura-c/sitemap-generator-for-spa

Repository files navigation

sitemap-generator-for-spa

this is sample sitemap generator for spa by scraping with puppeteer

compatible node.js version: >=16.13.0

Usage

  1. Clone repo
git clone https://github.com/komura-c/sitemap-generator-for-spa.git
  1. Install deps
npm i
  1. Please customize src/index.ts
import { generateSitemap } from './script/generateSitemap';

// Please customize targetURL and waitSec(wait page rendering seconds)
const targetURL = 'https://example.com';
const waitSec = 6;

void generateSitemap(targetURL, waitSec);
  1. Run
npm run start

LICENSE

MIT

About

sample sitemap generator for spa by scraping with puppeteer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published