Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/buildwithme/sitemap

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/buildwithme/sitemap

  • v0.0.0-20220816145822-6b40af4bd5f3
  • Source
  • Go
  • Socket score

Version published
Created
Source

CLI Sitemap generator

Description

Command line tool that can generate a sitemap for a given url passes as an argument

Usage

./sitemap -help
./sitemap <URL> -parallel=4 -max-depth=2  -timeout=10 -max-retry=2 -retry-delay=10 -output-file=./sitemapgoogle

EG: ./sitemap https://google.com -parallel=4 -timeout=10 -max-depth=2

Flags to be used

  • help

    • Show help
  • max-depth int

    • Maximum depth of URL navigation recursion (default 3)
  • max-retry int

    • Number request retries to make to an URL (default 3)
  • output-file string

    • Sitemap output filepath without extension (default "output-sitemap")
  • parallel int

    • Number of parallel workers to navigate throught site (default 1)
  • retry-delay int

    • Number of seconds to wait before making a new request to an URL that failed (default 30)
  • timeout int

    • Number of seconds to wait for response from server (default 30)

Features

  • run every request in parallel
  • no external dependencies
  • extracts URLs from <a> HTML tags
  • can have retries on URLs that are failing to respond

FAQs

Package last updated on 16 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc