New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/liuminhaw/sitemap-helper

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/liuminhaw/sitemap-helper

  • v0.1.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

sitemap helper

Some sitemap helper functions

  • Crawler
  • Parser

Install

go get github.com/liuminhawl/sitemapHelper

Crawler

Crawl the given URL and retrieve links within the same domain to generate sitemap content.

Example

See usage example at example crawler

Example build
cd examples/crawler
go build
Example run
Usage: ./crawler [options] <url>
  -depth int
    the maximum number of links deep to traverse (default 3)
  -outputDir string
    directory where result sitemap will be stored (default "sitemaps")
  -render
    indicate if the site need to be rendered to get actual links, useful for SPA site (default false)

Parser

Parse sitemap content and generate a slice of sitemap entries, ready for conversion to XML.

Example

See usage example at example parser

Example build

cd examples/parser/fileParser
# OR
cd examples/parser/urlParser

go build

Example run

File parser

Usage: ./fileParser <filepath>

Url parser

Usage: ./urlParser <url>

FAQs

Package last updated on 05 Jan 2025

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